diff options
Diffstat (limited to 'bot/src/schemas/stream.cpp')
| -rw-r--r-- | bot/src/schemas/stream.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index 34d170a..dbd5929 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -16,4 +16,20 @@ namespace bot::schemas { return EventType::CUSTOM; } } + + std::string event_type_to_string(const int &type) { + if (type == LIVE) { + return "live"; + } else if (type == OFFLINE) { + return "offline"; + } else if (type == TITLE) { + return "title"; + } else if (type == GAME) { + return "game"; + } else if (type == GITHUB) { + return "github"; + } else { + return "custom"; + } + } } |
