droplet 1.3.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)
static void add_slash_command (const std::shared_ptr< IGlobalSlashCommand > &slash_command)
static void add_button_command (const std::shared_ptr< IButtonCommand > &button_command)
static void add_form_command (const std::shared_ptr< IFormCommand > &form_command)
static void add_member_command (const std::shared_ptr< IMemberCommand > &button_command)
static void add_message_command (const std::shared_ptr< IMessageCommand > &button_command)
static void add_reaction_command (const std::shared_ptr< IReactionCommand > &button_command)
static void add_ready_command (const std::shared_ptr< IReady > &ready_command)
static void run ()
static void shutdown () noexcept

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

◆ add_form_command()

void Bot::add_form_command ( const std::shared_ptr< IFormCommand > & form_command)
static

◆ add_member_command()

void Bot::add_member_command ( const std::shared_ptr< IMemberCommand > & button_command)
static

◆ add_message_command()

void Bot::add_message_command ( const std::shared_ptr< IMessageCommand > & button_command)
static

◆ add_reaction_command()

void Bot::add_reaction_command ( const std::shared_ptr< IReactionCommand > & button_command)
static

◆ add_ready_command()

void Bot::add_ready_command ( const std::shared_ptr< IReady > & ready_command)
static

◆ add_slash_command()

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

◆ init()

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

◆ run()

void Bot::run ( )
static

◆ shutdown()

void Bot::shutdown ( )
staticnoexcept

Drop cluster and registered commands so connections and handlers are torn down before exit.

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: