droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
BotLibrary.hpp File Reference
#include <string>
Include dependency graph for BotLibrary.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto start_bot (bool IS_TEST=false) -> void
 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()

auto start_bot ( const bool IS_TEST)

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

Returns
doesn't return anything