28using ctx_t = std::unique_ptr<dpp::cluster>;
49 static void init(
const std::string& token);
50 static void add_slash_command(
const std::shared_ptr<IGlobalSlashCommand>& slash_command);
52 static void add_form_command(
const std::shared_ptr<IFormCommand>& form_command);
std::vector< std::shared_ptr< IFormCommand > > form_commands_t
Definition Bot.hpp:31
std::vector< std::shared_ptr< IButtonCommand > > button_commands_t
Definition Bot.hpp:30
std::map< std::string, std::shared_ptr< IGlobalSlashCommand > > slash_commands_t
Definition Bot.hpp:29
std::unique_ptr< dpp::cluster > ctx_t
Definition Bot.hpp:28
std::vector< std::shared_ptr< IReactionCommand > > reaction_commands_t
Definition Bot.hpp:34
std::vector< std::shared_ptr< IMessageCommand > > message_commands_t
Definition Bot.hpp:33
std::vector< std::shared_ptr< IReady > > ready_commands_t
Definition Bot.hpp:35
std::vector< std::shared_ptr< IMemberCommand > > member_commands_t
Definition Bot.hpp:32
static void add_slash_command(const std::shared_ptr< IGlobalSlashCommand > &slash_command)
registers new slash commands with the bot
Definition Bot.cpp:59
static slash_commands_t slash_commands
Definition Bot.hpp:42
static void add_message_command(const std::shared_ptr< IMessageCommand > &button_command)
registers new message commands with the bot
Definition Bot.cpp:99
static ctx_t ctx
Definition Bot.hpp:39
static void add_member_command(const std::shared_ptr< IMemberCommand > &button_command)
registers new member commands with the bot
Definition Bot.cpp:89
static void add_reaction_command(const std::shared_ptr< IReactionCommand > &button_command)
registers new reaction commands with the bot
Definition Bot.cpp:109
static form_commands_t form_commands
Definition Bot.hpp:41
static void add_form_command(const std::shared_ptr< IFormCommand > &form_command)
registers new form commands with the bot
Definition Bot.cpp:79
static reaction_commands_t reaction_commands
Definition Bot.hpp:45
static member_commands_t member_commands
Definition Bot.hpp:43
static void init(const std::string &token)
initializes our bot and sets the bot token
Definition Bot.cpp:40
static void add_button_command(const std::shared_ptr< IButtonCommand > &button_command)
registers new button commands with the bot
Definition Bot.cpp:69
static void run()
registeres all callbacks and starts the bot
Definition Bot.cpp:425
static message_commands_t message_commands
Definition Bot.hpp:44
static button_commands_t button_commands
Definition Bot.hpp:40
static void add_ready_command(const std::shared_ptr< IReady > &ready_command)
registers new ready commands with the bot
Definition Bot.cpp:119
static ready_commands_t ready_commands
Definition Bot.hpp:46