AquinBot 1.0.2
Official AquinBot made by Team Aquin | Finaly a simple Open Source Discord bot made in C++ by Aquin
 
Loading...
Searching...
No Matches
bot::Bot Class Reference

#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
 

Detailed Description

Bot - Class Create a bot with the required functions and all

Constructor & Destructor Documentation

◆ Bot()

bot::Bot::Bot ( const std::string ID,
const BotSettings & settings )

Constructor to create the bot.

Bot - Constructor

Parameters
`id`> Set the current ID for the bot
`settings`> Set the settings for the bot

◆ ~Bot()

bot::Bot::~Bot ( )

Call Bot::destroy(0)

Bot - Deconstructor

Member Function Documentation

◆ destroy()

int bot::Bot::destroy ( const int code)

Destroy the bot and end it with exit code 0

Destroy - Function

Parameters

◆ getID()

std::string bot::Bot::getID ( )

Get the current bot id.

Get ID - Function

Returns
std::string > Return the ID

◆ getSettings()

BotSettings bot::Bot::getSettings ( )

Get the current bot token.

Get token - Function

Returns
BotSettings > Return the current bot settings

◆ getToken()

std::string bot::Bot::getToken ( )

Get the bot token.

Get ID - Function

Returns
std::string > Return the token

◆ shutdown()

void bot::Bot::shutdown ( )

Shutdown the bot.

Shutdown - Function

◆ start()

void bot::Bot::start ( ) const

Start the bot.

Start - Function

Member Data Documentation

◆ app

dpp::cluster * bot::Bot::app
static

◆ botIsOn

bool bot::Bot::botIsOn = false
static

◆ ID

std::string bot::Bot::ID
staticprivate

◆ settings

BotSettings bot::Bot::settings
staticprivate

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