summaryrefslogtreecommitdiff
path: root/bot/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
committerilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
commit2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 (patch)
tree890df967067371cd5ddb7b83d733db875a253e7a /bot/src/config.hpp
parentad05411350f1152cc3c86cebb5b8492d34507b33 (diff)
feat: now you can listen to github
Diffstat (limited to 'bot/src/config.hpp')
-rw-r--r--bot/src/config.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/src/config.hpp b/bot/src/config.hpp
index 8707d02..db73f9a 100644
--- a/bot/src/config.hpp
+++ b/bot/src/config.hpp
@@ -42,12 +42,17 @@ namespace bot {
std::optional<std::string> paste_service = std::nullopt;
};
+ struct TokenConfiguration {
+ std::optional<std::string> github_token = std::nullopt;
+ };
+
struct Configuration {
TwitchCredentialsConfiguration twitch_credentials;
DatabaseConfiguration database;
CommandConfiguration commands;
OwnerConfiguration owner;
UrlConfiguration url;
+ TokenConfiguration tokens;
};
std::optional<Configuration> parse_configuration_from_file(