From 0d36a1ee88fb7aedf5b33af7ac95140b002c5a64 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 1 Dec 2025 16:50:39 +0500 Subject: feat: rss timeout --- bot/src/config.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bot/src/config.hpp') 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 help = std::nullopt; std::optional paste_service = std::nullopt; std::optional randompost = std::nullopt; - std::optional rssbridge = std::nullopt; }; struct TokenConfiguration { std::optional github_token = std::nullopt; }; + struct RssConfiguration { + std::optional 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 luaState) const; }; std::optional parse_configuration_from_file( - const std::string &file_path); + const std::string& file_path); } -- cgit v1.2.3