summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-07 00:23:22 +0500
committerilotterytea <iltsu@alright.party>2024-05-07 00:23:22 +0500
commit08714a202d0eff3dfd31a4b0dd7f3311b0fd3f0e (patch)
treeefadb1672e8c1b0a8aaaac989e8014b9ec26d5b8 /src/config.hpp
parent9069514f8425932ef998fc8a80b514eb81c88025 (diff)
upd: struct for twitch credentials
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/config.hpp b/src/config.hpp
index afdf396..584fb09 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -17,10 +17,13 @@ namespace bot {
std::string port;
};
+ struct TwitchCredentialsConfiguration {
+ std::string client_id;
+ std::string token;
+ };
+
struct Configuration {
- std::string bot_username;
- std::string bot_password;
- std::string bot_client_id;
+ TwitchCredentialsConfiguration twitch_credentials;
DatabaseConfiguration database;
};