summaryrefslogtreecommitdiff
path: root/bot/src/config.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
committerilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
commit2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 (patch)
tree890df967067371cd5ddb7b83d733db875a253e7a /bot/src/config.cpp
parentad05411350f1152cc3c86cebb5b8492d34507b33 (diff)
feat: now you can listen to github
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 + "'");