diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-01 18:54:10 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-01 18:54:10 +0500 |
| commit | 8c2e0d8c1faabb76f2e75cddc8b7da2caabf8da6 (patch) | |
| tree | 5d227bd7529c0fa7e248737d430212275621bb93 /bot/src/config.cpp | |
| parent | 25a25a07a7b68443791974800dbfc77d223392d6 (diff) | |
feat: KICK SUPPORT RAAAAH!!!! emojiAngry
Diffstat (limited to 'bot/src/config.cpp')
| -rw-r--r-- | bot/src/config.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
