feat: add initial experimental Twitch Eventsub support (#5837)

Co-authored-by: nerix <nerixdev@outlook.de>
This commit is contained in:
pajlada
2025-02-02 17:03:24 +01:00
committed by GitHub
parent f9f7d47b43
commit 0f8a29fdb9
130 changed files with 19656 additions and 8 deletions
+6
View File
@@ -57,6 +57,9 @@ class ITwitchUsers;
namespace pronouns {
class Pronouns;
} // namespace pronouns
namespace eventsub {
class IController;
} // namespace eventsub
class IApplication
{
@@ -109,6 +112,7 @@ public:
virtual IStreamerMode *getStreamerMode() = 0;
virtual ITwitchUsers *getTwitchUsers() = 0;
virtual pronouns::Pronouns *getPronouns() = 0;
virtual eventsub::IController *getEventSub() = 0;
};
class Application : public IApplication
@@ -174,6 +178,7 @@ private:
std::unique_ptr<IStreamerMode> streamerMode;
std::unique_ptr<ITwitchUsers> twitchUsers;
std::unique_ptr<pronouns::Pronouns> pronouns;
std::unique_ptr<eventsub::IController> eventSub;
#ifdef CHATTERINO_HAVE_PLUGINS
std::unique_ptr<PluginController> plugins;
#endif
@@ -221,6 +226,7 @@ public:
SeventvEmotes *getSeventvEmotes() override;
SeventvEventAPI *getSeventvEventAPI() override;
pronouns::Pronouns *getPronouns() override;
eventsub::IController *getEventSub() override;
ILinkResolver *getLinkResolver() override;
IStreamerMode *getStreamerMode() override;