24 static std::string
ID;
29 static dpp::cluster *
app;
static std::string ID
Definition Bot.hpp:24
std::string getToken()
Get the bot token.
Definition Bot.cpp:53
Bot(const std::string ID, const BotSettings &settings)
Constructor to create the bot.
Definition Bot.cpp:17
std::string getID()
Get the current bot id.
Definition Bot.cpp:50
static dpp::cluster * app
Definition Bot.hpp:29
BotSettings getSettings()
Get the current bot token.
Definition Bot.cpp:47
~Bot()
Call Bot::destroy(0)
Definition Bot.cpp:27
int destroy(const int code)
Destroy the bot and end it with exit code 0
Definition Bot.cpp:56
void start() const
Start the bot.
Definition Bot.cpp:40
static BotSettings settings
Definition Bot.hpp:26
void shutdown()
Shutdown the bot.
Definition Bot.cpp:30
static bool botIsOn
Definition Bot.hpp:31
struct bot::BotSettings BotSettings
Create the bot settings:
Create the bot settings:
Definition Bot.hpp:13
std::string name
Definition Bot.hpp:14
std::string token
Definition Bot.hpp:15