summaryrefslogtreecommitdiff
path: root/bot/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/config.cpp')
-rw-r--r--bot/src/config.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/src/config.cpp b/bot/src/config.cpp
index 6c8e6d6..eef5142 100644
--- a/bot/src/config.cpp
+++ b/bot/src/config.cpp
@@ -24,6 +24,7 @@ namespace bot {
CommandConfiguration cmd_cfg;
OwnerConfiguration owner_cfg;
UrlConfiguration url_cfg;
+ TokenConfiguration token_cfg;
std::string line;
while (std::getline(ifs, line, '\n')) {
@@ -71,6 +72,10 @@ namespace bot {
} else if (key == "url.chatters.paste_service") {
url_cfg.paste_service = value;
}
+
+ else if (key == "token.github") {
+ token_cfg.github_token = value;
+ }
}
cfg.url = url_cfg;
@@ -78,6 +83,7 @@ namespace bot {
cfg.commands = cmd_cfg;
cfg.twitch_credentials = ttv_crd_cfg;
cfg.database = db_cfg;
+ cfg.tokens = token_cfg;
log::info("Configuration",
"Successfully loaded the file from '" + file_path + "'");