diff options
Diffstat (limited to 'bot/src/config.hpp')
| -rw-r--r-- | bot/src/config.hpp | 9 |
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); } |
