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/schemas | |
| parent | 8b86e9a8f071a1af5ce1531a9ebd2b2140e73ff7 (diff) | |
feat: RSS support
Diffstat (limited to 'bot/src/schemas')
| -rw-r--r-- | bot/src/schemas/stream.cpp | 8 | ||||
| -rw-r--r-- | bot/src/schemas/stream.hpp | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index c332fd8..80fc854 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -36,7 +36,13 @@ namespace bot::schemas { return EventType::BTTV_EMOTE_UPDATE; } #endif - else { + else if (type == "rss") { + return EventType::RSS; + } else if (type == "twitter") { + return EventType::TWITTER; + } else if (type == "telegram") { + return EventType::TELEGRAM; + } else { return EventType::CUSTOM; } } diff --git a/bot/src/schemas/stream.hpp b/bot/src/schemas/stream.hpp index 7e089c7..e0583b4 100644 --- a/bot/src/schemas/stream.hpp +++ b/bot/src/schemas/stream.hpp @@ -22,6 +22,9 @@ namespace bot::schemas { BTTV_EMOTE_UPDATE, #endif GITHUB = 40, + RSS = 45, + TWITTER = 46, + TELEGRAM = 47, CUSTOM = 99 }; |
