#include <Bot.hpp>
◆ add_button_command()
void Bot::add_button_command |
( |
const std::shared_ptr< IButtonCommand > & | button_command | ) |
|
|
static |
registers new button commands with the bot
- Parameters
-
button_command | the command that implements the IButtonCommand interface |
- Returns
- doesn't return anything
◆ add_form_command()
void Bot::add_form_command |
( |
const std::shared_ptr< IFormCommand > & | form_command | ) |
|
|
static |
registers new form commands with the bot
- Parameters
-
form_command | the command that implements the IFormCommand interface |
- Returns
- doesn't return anything
◆ add_member_command()
void Bot::add_member_command |
( |
const std::shared_ptr< IMemberCommand > & | member_command | ) |
|
|
static |
registers new member commands with the bot
- Parameters
-
member_command | the command that implements the IMemberCommand interface |
- Returns
- doesn't return anything
◆ add_message_command()
void Bot::add_message_command |
( |
const std::shared_ptr< IMessageCommand > & | message_command | ) |
|
|
static |
registers new message commands with the bot
- Parameters
-
- Returns
- doesn't return anything
◆ add_reaction_command()
void Bot::add_reaction_command |
( |
const std::shared_ptr< IReactionCommand > & | reaction_command | ) |
|
|
static |
registers new reaction commands with the bot
- Parameters
-
- Returns
- doesn't return anything
◆ add_ready_command()
void Bot::add_ready_command |
( |
const std::shared_ptr< IReady > & | ready_command | ) |
|
|
static |
registers new ready commands with the bot
- Parameters
-
ready_command | the command that implements the IReady interface |
- Returns
- doesn't return anything
◆ add_slash_command()
registers new slash commands with the bot
- Parameters
-
- Returns
- doesn't return anything
◆ init()
void Bot::init |
( |
const std::string & | token | ) |
|
|
static |
initializes our bot and sets the bot token
- Parameters
-
token | the token to be used by the bot |
- Returns
- doesn't return anything
◆ run()
registeres all callbacks and starts the bot
- Returns
- doesn't return anything
◆ button_commands
◆ ctx
◆ form_commands
◆ member_commands
◆ message_commands
◆ reaction_commands
◆ ready_commands
◆ slash_commands
The documentation for this class was generated from the following files: