droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
BotLibrary.hpp
Go to the documentation of this file.
1/*
2 * (c) Copyright dropsoft.org - All rights reserved
3 * Author: Erarnitox <david@erarnitox.de>
4 *
5 * License: MIT License
6 *
7 * Description: This Library combines all the
8 * fuctionality of the bot into a static library
9 * that can be used by the main binary and also
10 * the unit_test binary.
11 *
12 * Documentation: https://droplet.dropsoft.org/doxygen/bot_library
13 */
14
15#pragma once
16
17#include <string>
18
19auto start_bot(bool IS_TEST = false) -> void;
20
21[[nodiscard]] static std::string read_bot_token(const std::string& file);
22
23[[nodiscard]] static std::string read_database_credentials(const std::string& file);
std::string read_database_credentials(const std::string &file)
reads the connection string for the postgres database from a file
Definition BotLibrary.cpp:94
std::string read_bot_token(const std::string &file)
reads the bot token from a file
Definition BotLibrary.cpp:69
auto start_bot(bool IS_TEST=false) -> void
this is the entry point of the binary that will start the bot
Definition BotLibrary.cpp:26