summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-11 17:05:41 +0500
committerilotterytea <iltsu@alright.party>2024-05-11 17:05:41 +0500
commitd57a5bcc3151f91fd82aa6f333e99a60eca8ced3 (patch)
tree4a171216607ad958ab2128619622fa02cea6a0d2 /src/config.cpp
parent4cc618566d8546a06da0974612d08df80c45db62 (diff)
feat: help command + url configuration
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 977b92c..a8bf3fb 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -23,6 +23,7 @@ namespace bot {
DatabaseConfiguration db_cfg;
CommandConfiguration cmd_cfg;
OwnerConfiguration owner_cfg;
+ UrlConfiguration url_cfg;
std::string line;
while (std::getline(ifs, line, '\n')) {
@@ -64,8 +65,13 @@ namespace bot {
} else if (key == "owner.id") {
owner_cfg.id = std::stoi(value);
}
+
+ else if (key == "url.help") {
+ url_cfg.help = value;
+ }
}
+ cfg.url = url_cfg;
cfg.owner = owner_cfg;
cfg.commands = cmd_cfg;
cfg.twitch_credentials = ttv_crd_cfg;