3 Commits

2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -76,7 +76,6 @@ class TrackerComponent(cmds.Component):
eventsub.StreamOnlineSubscription,
eventsub.StreamOfflineSubscription,
eventsub.ChannelUpdateSubscription,
eventsub.ChannelNotificationSubscription,
)
)
@@ -106,6 +105,10 @@ class TrackerComponent(cmds.Component):
eventsub.ChannelRaidSubscription(
from_broadcaster_user_id=channel.userid
),
eventsub.ChatNotificationSubscription(
broadcaster_user_id=channel.userid,
user_id=self.bot.bot_id,
),
)
)
+2 -1
View File
@@ -1,4 +1,5 @@
import twitchio
from twitchio.types_.eventsub import *
class ChatNotificationWithPayload(twitchio.ChatNotification):
@@ -10,6 +11,6 @@ class ChatNotificationWithPayload(twitchio.ChatNotification):
__slots__ = ("_raw",)
def __init__(self, payload: twitchio.ChannelChatNotificationEvent, *args, **kwargs):
def __init__(self, payload: ChannelChatNotificationEvent, *args, **kwargs):
super().__init__(payload, *args, **kwargs)
self._raw = payload