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.cpp8
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;