summaryrefslogtreecommitdiff
path: root/bot/src/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/schemas')
-rw-r--r--bot/src/schemas/stream.cpp8
-rw-r--r--bot/src/schemas/stream.hpp3
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
};