#include <string>
Go to the source code of this file.
|
| 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
|
◆ read_bot_token()
| std::string read_bot_token |
( |
const std::string & | file | ) |
|
|
nodiscard |
reads the bot token from a file
- Parameters
-
| file | the 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
-
| file | the 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