droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
Bot Class Reference

#include <Bot.hpp>

Collaboration diagram for Bot:

Static Public Member Functions

static void init (const std::string &token)
 initializes our bot and sets the bot token
 
static void add_slash_command (const std::shared_ptr< IGlobalSlashCommand > &slash_command)
 registers new slash commands with the bot
 
static void add_button_command (const std::shared_ptr< IButtonCommand > &button_command)
 registers new button commands with the bot
 
static void add_form_command (const std::shared_ptr< IFormCommand > &form_command)
 registers new form commands with the bot
 
static void add_member_command (const std::shared_ptr< IMemberCommand > &button_command)
 registers new member commands with the bot
 
static void add_message_command (const std::shared_ptr< IMessageCommand > &button_command)
 registers new message commands with the bot
 
static void add_reaction_command (const std::shared_ptr< IReactionCommand > &button_command)
 registers new reaction commands with the bot
 
static void add_ready_command (const std::shared_ptr< IReady > &ready_command)
 registers new ready commands with the bot
 
static void run ()
 registeres all callbacks and starts the bot
 

Static Public Attributes

static ctx_t ctx
 
static button_commands_t button_commands
 
static form_commands_t form_commands
 
static slash_commands_t slash_commands
 
static member_commands_t member_commands
 
static message_commands_t message_commands
 
static reaction_commands_t reaction_commands
 
static ready_commands_t ready_commands
 

Member Function Documentation

◆ 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_commandthe 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_commandthe 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_commandthe 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
message_commandthe command that implements the IMessageCommand interface
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
reaction_commandthe command that implements the IReactionCommand interface
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_commandthe command that implements the IReady interface
Returns
doesn't return anything

◆ add_slash_command()

void Bot::add_slash_command ( const std::shared_ptr< IGlobalSlashCommand > & slash_command)
static

registers new slash commands with the bot

Parameters
slash_commandthe command that implements the IGlobalSlashCommand interface
Returns
doesn't return anything

◆ init()

void Bot::init ( const std::string & token)
static

initializes our bot and sets the bot token

Parameters
tokenthe token to be used by the bot
Returns
doesn't return anything

◆ run()

void Bot::run ( )
static

registeres all callbacks and starts the bot

Returns
doesn't return anything

Member Data Documentation

◆ button_commands

button_commands_t Bot::button_commands
static

◆ ctx

ctx_t Bot::ctx
static

◆ form_commands

form_commands_t Bot::form_commands
static

◆ member_commands

member_commands_t Bot::member_commands
static

◆ message_commands

message_commands_t Bot::message_commands
static

◆ reaction_commands

reaction_commands_t Bot::reaction_commands
static

◆ ready_commands

ready_commands_t Bot::ready_commands
static

◆ slash_commands

slash_commands_t Bot::slash_commands
static

The documentation for this class was generated from the following files: