From 2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 13 Dec 2024 23:50:45 +0500 Subject: feat: now you can listen to github --- bot/src/config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bot/src/config.cpp') 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 + "'"); -- cgit v1.2.3