summaryrefslogtreecommitdiff
path: root/bot/src/config.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-04 17:03:45 +0500
committerilotterytea <iltsu@alright.party>2025-12-04 17:03:45 +0500
commit4dfecba2444f1457b91be46cee32169049a533c3 (patch)
tree17f2ee512b81da24d29f831bc691337eacc82ef4 /bot/src/config.cpp
parent5a1df5c2ba0c9793bc3b90b18cc37ae787e68c24 (diff)
feat: superuser role
Diffstat (limited to 'bot/src/config.cpp')
-rw-r--r--bot/src/config.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/config.cpp b/bot/src/config.cpp
index a2cd2d6..fc6a5fe 100644
--- a/bot/src/config.cpp
+++ b/bot/src/config.cpp
@@ -122,6 +122,10 @@ namespace bot {
for (const std::string &x : utils::string::split_text(value, ',')) {
ttv_cfg.trusted_user_ids.push_back(std::stoi(x));
}
+ } else if (key == "twitch.superuser_ids") {
+ for (const std::string &x : utils::string::split_text(value, ',')) {
+ ttv_cfg.superuser_ids.push_back(std::stoi(x));
+ }
}
else if (key == "db_name") {