#include <Bot.hpp>
Public Member Functions | |
Bot (const std::string ID, const BotSettings &settings) | |
Constructor to create the bot. | |
~Bot () | |
Call Bot::destroy(0) | |
BotSettings | getSettings () |
Get the current bot token. | |
void | start () const |
Start the bot. | |
void | shutdown () |
Shutdown the bot. | |
std::string | getID () |
Get the current bot id. | |
std::string | getToken () |
Get the bot token. | |
int | destroy (const int code) |
Destroy the bot and end it with exit code 0 | |
Static Public Attributes | |
static dpp::cluster * | app |
static bool | botIsOn = false |
Static Private Attributes | |
static std::string | ID |
static BotSettings | settings |
Bot - Class Create a bot with the required functions and all
bot::Bot::Bot | ( | const std::string | ID, |
const BotSettings & | settings ) |
Constructor to create the bot.
Bot - Constructor
`id` | > Set the current ID for the bot |
`settings` | > Set the settings for the bot |
bot::Bot::~Bot | ( | ) |
Call Bot::destroy(0)
Bot - Deconstructor
int bot::Bot::destroy | ( | const int | code | ) |
Destroy the bot and end it with exit code 0
Destroy - Function
std::string bot::Bot::getID | ( | ) |
Get the current bot id.
Get ID - Function
std::string
> Return the ID BotSettings bot::Bot::getSettings | ( | ) |
Get the current bot token.
Get token - Function
BotSettings
> Return the current bot settings std::string bot::Bot::getToken | ( | ) |
Get the bot token.
Get ID - Function
std::string
> Return the token void bot::Bot::shutdown | ( | ) |
Shutdown the bot.
Shutdown - Function
void bot::Bot::start | ( | ) | const |
Start the bot.
Start - Function
|
static |
|
static |
|
staticprivate |
|
staticprivate |