From 79be89ad0491bfdd110b2c612e21a0f28c29fa87 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 2 Jul 2025 03:31:54 +0500 Subject: feat: MARIADB SUPPORT!!!! --- bot/src/commands/request.hpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'bot/src/commands/request.hpp') diff --git a/bot/src/commands/request.hpp b/bot/src/commands/request.hpp index b6ed534..9822fc8 100644 --- a/bot/src/commands/request.hpp +++ b/bot/src/commands/request.hpp @@ -2,7 +2,6 @@ #include #include -#include #include #include #include @@ -11,6 +10,13 @@ #include "../schemas/channel.hpp" #include "../schemas/user.hpp" +namespace bot::command { + struct Request; +} + +#include "commands/command.hpp" +#include "database.hpp" + namespace bot::command { struct Request { std::string command_id; @@ -23,8 +29,11 @@ namespace bot::command { schemas::User user; schemas::UserRights user_rights; - pqxx::connection &conn; - sol::table as_lua_table(std::shared_ptr luaState) const; }; + + std::optional generate_request( + const command::CommandLoader &command_loader, + const irc::Message &irc_message, + std::unique_ptr &conn); } -- cgit v1.2.3