mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
Update ai
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user