From 8c2e0d8c1faabb76f2e75cddc8b7da2caabf8da6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 1 Jul 2025 18:54:10 +0500 Subject: feat: KICK SUPPORT RAAAAH!!!! emojiAngry --- bot/src/config.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bot/src/config.cpp') diff --git a/bot/src/config.cpp b/bot/src/config.cpp index 4fc3994..9f22edf 100644 --- a/bot/src/config.cpp +++ b/bot/src/config.cpp @@ -81,6 +81,7 @@ namespace bot { Configuration cfg; TwitchCredentialsConfiguration ttv_crd_cfg; + KickCredentialsConfiguration kick_crd_cfg; DatabaseConfiguration db_cfg; CommandConfiguration cmd_cfg; OwnerConfiguration owner_cfg; @@ -116,6 +117,12 @@ namespace bot { db_cfg.port = value; } + else if (key == "kick.client_id") { + kick_crd_cfg.client_id = value; + } else if (key == "kick.client_secret") { + kick_crd_cfg.client_secret = value; + } + else if (key == "commands.join_allowed") { cmd_cfg.join_allowed = std::stoi(value); } else if (key == "commands.join_allow_from_other_chats") { @@ -153,6 +160,7 @@ namespace bot { cfg.owner = owner_cfg; cfg.commands = cmd_cfg; cfg.twitch_credentials = ttv_crd_cfg; + cfg.kick_credentials = kick_crd_cfg; cfg.database = db_cfg; cfg.tokens = token_cfg; -- cgit v1.2.3