From 4d360abd2155c10f573bec512cf848e8c7e2b2f0 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 17:37:19 +0100 Subject: [PATCH] chat listener updated --- chat_listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index fed8cba..5d1c587 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -1,6 +1,6 @@ from twitchio.ext import commands -import twitchio from twitchio.web import AiohttpAdapter +from twitchio.models import Message as TwitchIOMessage class TwitchBot(commands.Bot): def __init__(self, access_token: str, client_id: str, client_secret: str, bot_id: str, channel_name: str, websocket_manager, db_user_id: int): @@ -31,7 +31,7 @@ class TwitchBot(commands.Bot): """Called once when the bot goes online.""" print(f"Listener ready for #{self.channel_name}") - async def event_message(self, message: twitchio.Message): + async def event_message(self, message: TwitchIOMessage): """Runs every time a message is sent in chat.""" # The 'echo' check is temporarily disabled to allow self-messaging for testing. # if message.echo: