diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-22 23:12:52 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-22 23:12:52 +0500 |
| commit | 84aebba223b6a8f9eb2d1272c3ed2083d561f2b9 (patch) | |
| tree | 02ae6f5798617074cf6ea095669c15d0ca48a402 /bot/src/config.cpp | |
| parent | 8b86e9a8f071a1af5ce1531a9ebd2b2140e73ff7 (diff) | |
feat: RSS support
Diffstat (limited to 'bot/src/config.cpp')
| -rw-r--r-- | bot/src/config.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/src/config.cpp b/bot/src/config.cpp index 9f22edf..4e4b71d 100644 --- a/bot/src/config.cpp +++ b/bot/src/config.cpp @@ -65,6 +65,11 @@ namespace bot { } else { url["randompost"] = sol::lua_nil; } + if (this->url.rssbridge.has_value()) { + url["rssbridge"] = this->url.rssbridge.value(); + } else { + url["rssbridge"] = sol::lua_nil; + } o["url"] = url; return o; @@ -149,6 +154,8 @@ namespace bot { url_cfg.paste_service = value; } else if (key == "url.randompost") { url_cfg.randompost = value; + } else if (key == "url.rssbridge") { + url_cfg.rssbridge = value; } else if (key == "token.github") { |
