droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
BotLibrary.cpp File Reference
#include "BotLibrary.hpp"
#include <Bot.hpp>
#include <Commands.hpp>
#include <Database.hpp>
#include <fstream>
Include dependency graph for BotLibrary.cpp:

Functions

void start_bot (const bool IS_TEST)
 this is the entry point of the binary that will start the bot
 
std::string read_bot_token (const std::string &file)
 reads the bot token from a file
 
std::string read_database_credentials (const std::string &file)
 reads the connection string for the postgres database from a file
 

Function Documentation

◆ read_bot_token()

std::string read_bot_token ( const std::string & file)
nodiscard

reads the bot token from a file

Parameters
filethe name of the file holding the bot token
Returns
returns the bot token as a std::string

◆ read_database_credentials()

std::string read_database_credentials ( const std::string & file)
nodiscard

reads the connection string for the postgres database from a file

Parameters
filethe name of the file holding the connection string
Returns
returns the connection string as a std::string

◆ start_bot()

void start_bot ( const bool IS_TEST)

this is the entry point of the binary that will start the bot

Returns
doesn't return anything