summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-08 22:07:24 +0500
committerilotterytea <iltsu@alright.party>2024-05-08 22:07:24 +0500
commitef028f6535c8aac9367d2375cdd9556a1dcfe4f7 (patch)
tree409c325a23e460af41c1c0a1177fb61a55be7d4c /src/config.hpp
parent8c83c83184cc2daf5fb10bbcd01d92dee0bfbb26 (diff)
feat: owner configuration
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 69b906d..25519c3 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -27,10 +27,16 @@ namespace bot {
bool join_allow_from_other_chats = false;
};
+ struct OwnerConfiguration {
+ std::optional<std::string> name = std::nullopt;
+ std::optional<int> id = std::nullopt;
+ };
+
struct Configuration {
TwitchCredentialsConfiguration twitch_credentials;
DatabaseConfiguration database;
CommandConfiguration commands;
+ OwnerConfiguration owner;
};
std::optional<Configuration> parse_configuration_from_file(