Update ai

This commit is contained in:
2025-03-18 20:29:22 +01:00
parent 46241f0b2e
commit 05bd4bde27
3 changed files with 8 additions and 4 deletions

View File

@@ -315,7 +315,7 @@ class MessagesProc:
# ) # )
@classmethod @classmethod
async def on_message(cls, event: MessageEvent): async def on_message(cls, received_as: str, event: MessageEvent):
if event.chatter_user_name in cls.FULL_IGNORED_USER_LOGINS: if event.chatter_user_name in cls.FULL_IGNORED_USER_LOGINS:
return return
@@ -323,7 +323,7 @@ class MessagesProc:
await cls._update_history(event) await cls._update_history(event)
twitch = await authorize(event.broadcaster_user_login) twitch = await authorize(received_as)
await cls._goida(twitch, event) await cls._goida(twitch, event)
await cls._lasqexx(twitch, event) await cls._lasqexx(twitch, event)

View File

@@ -81,8 +81,11 @@ async def check_streams_states():
"stream_notifications.on_message", "stream_notifications.on_message",
retry_on_error=True retry_on_error=True
) )
async def on_message(event: MessageEvent): async def on_message(
await MessagesProc.on_message(event) received_as: str,
event: MessageEvent
):
await MessagesProc.on_message(received_as, event)
@broker.task( @broker.task(

View File

@@ -54,6 +54,7 @@ class TwitchService:
async def on_message(self, event: ChannelChatMessageEvent): async def on_message(self, event: ChannelChatMessageEvent):
await on_message.kiq( await on_message.kiq(
self.streamer.twitch.name,
MessageEvent.from_twitch_event(event) MessageEvent.from_twitch_event(event)
) )