Test message processing

This commit is contained in:
2025-02-18 20:05:51 +01:00
parent cc45a437d9
commit 3cd6b9ebe3
3 changed files with 114 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ from repositories.streamers import StreamerConfigRepository
from .state import State, UpdateEvent, EventType
from .watcher import StateWatcher
from .messages_proc import MessageEvent, MessagesProc
from .twitch.authorize import authorize
@@ -73,3 +74,11 @@ async def check_streams_states():
EventType.UNKNOWN,
state
)
@broker.task(
"stream_notifications.twitch.on_message",
retry_on_error=True
)
async def on_message(event: MessageEvent):
await MessagesProc.on_message(event)