From 35410dec0aa78cf506bdbb17d8650962ceedb3b2 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 17:29:03 +0100 Subject: [PATCH] cahat_listener.py --- chat_listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index 3cab7cc..fed8cba 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -1,5 +1,5 @@ from twitchio.ext import commands -from twitchio.models import Message +import twitchio from twitchio.web import AiohttpAdapter class TwitchBot(commands.Bot): @@ -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: Message): + async def event_message(self, message: twitchio.Message): """Runs every time a message is sent in chat.""" # The 'echo' check is temporarily disabled to allow self-messaging for testing. # if message.echo: