From d1793df1eda463b10107d41785ad1d7f055ed476 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 18 May 2024 14:48:12 +0500 Subject: upd: moved the bot part to a relative subfolder --- bot/src/commands/request.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bot/src/commands/request.hpp (limited to 'bot/src/commands/request.hpp') diff --git a/bot/src/commands/request.hpp b/bot/src/commands/request.hpp new file mode 100644 index 0000000..e2685f1 --- /dev/null +++ b/bot/src/commands/request.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include +#include +#include + +#include "../irc/message.hpp" +#include "../schemas/channel.hpp" +#include "../schemas/user.hpp" + +namespace bot::command { + struct Request { + std::string command_id; + std::optional subcommand_id; + std::optional message; + const irc::Message &irc_message; + + schemas::Channel channel; + schemas::ChannelPreferences channel_preferences; + schemas::User user; + schemas::UserRights user_rights; + + pqxx::connection &conn; + }; +} -- cgit v1.2.3