27using ctx_t = std::unique_ptr<dpp::cluster>;
48 static void init(
const std::string& token);
49 static void add_slash_command(
const std::shared_ptr<IGlobalSlashCommand>& slash_command);
51 static void add_form_command(
const std::shared_ptr<IFormCommand>& form_command);
std::vector< std::shared_ptr< IFormCommand > > form_commands_t
Definition Bot.hpp:30
std::vector< std::shared_ptr< IButtonCommand > > button_commands_t
Definition Bot.hpp:29
std::map< std::string, std::shared_ptr< IGlobalSlashCommand > > slash_commands_t
Definition Bot.hpp:28
std::unique_ptr< dpp::cluster > ctx_t
Definition Bot.hpp:27
std::vector< std::shared_ptr< IReactionCommand > > reaction_commands_t
Definition Bot.hpp:33
std::vector< std::shared_ptr< IMessageCommand > > message_commands_t
Definition Bot.hpp:32
std::vector< std::shared_ptr< IReady > > ready_commands_t
Definition Bot.hpp:34
std::vector< std::shared_ptr< IMemberCommand > > member_commands_t
Definition Bot.hpp:31
static void add_slash_command(const std::shared_ptr< IGlobalSlashCommand > &slash_command)
Definition Bot.cpp:45
static slash_commands_t slash_commands
Definition Bot.hpp:41
static void add_message_command(const std::shared_ptr< IMessageCommand > &button_command)
Definition Bot.cpp:61
static ctx_t ctx
Definition Bot.hpp:38
static void add_member_command(const std::shared_ptr< IMemberCommand > &button_command)
Definition Bot.cpp:57
static void add_reaction_command(const std::shared_ptr< IReactionCommand > &button_command)
Definition Bot.cpp:65
static form_commands_t form_commands
Definition Bot.hpp:40
static void add_form_command(const std::shared_ptr< IFormCommand > &form_command)
Definition Bot.cpp:53
static reaction_commands_t reaction_commands
Definition Bot.hpp:44
static void shutdown() noexcept
Definition Bot.cpp:78
static member_commands_t member_commands
Definition Bot.hpp:42
static void init(const std::string &token)
Definition Bot.cpp:32
static void add_button_command(const std::shared_ptr< IButtonCommand > &button_command)
Definition Bot.cpp:49
static void run()
Definition Bot.cpp:73
static message_commands_t message_commands
Definition Bot.hpp:43
static button_commands_t button_commands
Definition Bot.hpp:39
static void add_ready_command(const std::shared_ptr< IReady > &ready_command)
Definition Bot.cpp:69
static ready_commands_t ready_commands
Definition Bot.hpp:45