mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Update ai
This commit is contained in:
@@ -315,7 +315,7 @@ class MessagesProc:
|
||||
# )
|
||||
|
||||
@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:
|
||||
return
|
||||
|
||||
@@ -323,7 +323,7 @@ class MessagesProc:
|
||||
|
||||
await cls._update_history(event)
|
||||
|
||||
twitch = await authorize(event.broadcaster_user_login)
|
||||
twitch = await authorize(received_as)
|
||||
|
||||
await cls._goida(twitch, event)
|
||||
await cls._lasqexx(twitch, event)
|
||||
|
||||
@@ -81,8 +81,11 @@ async def check_streams_states():
|
||||
"stream_notifications.on_message",
|
||||
retry_on_error=True
|
||||
)
|
||||
async def on_message(event: MessageEvent):
|
||||
await MessagesProc.on_message(event)
|
||||
async def on_message(
|
||||
received_as: str,
|
||||
event: MessageEvent
|
||||
):
|
||||
await MessagesProc.on_message(received_as, event)
|
||||
|
||||
|
||||
@broker.task(
|
||||
|
||||
@@ -54,6 +54,7 @@ class TwitchService:
|
||||
|
||||
async def on_message(self, event: ChannelChatMessageEvent):
|
||||
await on_message.kiq(
|
||||
self.streamer.twitch.name,
|
||||
MessageEvent.from_twitch_event(event)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user