summaryrefslogtreecommitdiff
path: root/bot/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-01 16:50:39 +0500
committerilotterytea <iltsu@alright.party>2025-12-01 16:50:39 +0500
commit0d36a1ee88fb7aedf5b33af7ac95140b002c5a64 (patch)
tree7f51f629da03376e214c7683f738b05ed4be3816 /bot/src/config.hpp
parent71a4a8d6fc4a84029939003107bfbaad33b8c6ce (diff)
feat: rss timeout
Diffstat (limited to 'bot/src/config.hpp')
-rw-r--r--bot/src/config.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/bot/src/config.hpp b/bot/src/config.hpp
index 139c4f3..1a09463 100644
--- a/bot/src/config.hpp
+++ b/bot/src/config.hpp
@@ -52,13 +52,17 @@ namespace bot {
std::optional<std::string> help = std::nullopt;
std::optional<std::string> paste_service = std::nullopt;
std::optional<std::string> randompost = std::nullopt;
- std::optional<std::string> rssbridge = std::nullopt;
};
struct TokenConfiguration {
std::optional<std::string> github_token = std::nullopt;
};
+ struct RssConfiguration {
+ std::optional<std::string> bridge = std::nullopt;
+ int timeout = 60;
+ };
+
struct Configuration {
TwitchCredentialsConfiguration twitch_credentials;
KickCredentialsConfiguration kick_credentials;
@@ -67,10 +71,11 @@ namespace bot {
OwnerConfiguration owner;
UrlConfiguration url;
TokenConfiguration tokens;
+ RssConfiguration rss;
sol::table as_lua_table(std::shared_ptr<sol::state> luaState) const;
};
std::optional<Configuration> parse_configuration_from_file(
- const std::string &file_path);
+ const std::string& file_path);
}