diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-16 20:49:33 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-16 23:04:52 +0500 |
| commit | 5ca6a1c1ccfff28ff28f992a6d2231c49f7cabf9 (patch) | |
| tree | a4634a327162a555eb14604c3dc6bb70437fecb6 /bot/src/schemas/stream.cpp | |
| parent | 52a6af6a2e5d64561a6a8a15c7e079fe46ffaa85 (diff) | |
feat: more string functions
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"; + } + } } |
