From 2fe07abecfbab98d9da7f257f929750fca387793 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 15:29:37 +0100 Subject: [PATCH] Not excluding messages from "self" in the return statement --- chat_listener.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index 4115dc1..c525d68 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -22,11 +22,9 @@ class TwitchBot(commands.Bot): async def event_message(self, message): """Runs every time a message is sent in chat.""" - if message.echo: - # This is a message from the bot itself (the authenticated user). - # We'll log it for debugging but won't process it further. - print(f"Echo message from {message.author.name} in #{self.channel_name}: {message.content}") - return + # The 'echo' check is temporarily disabled to allow self-messaging for testing. + # if message.echo: + # return # Ignore messages sent by the bot itself # For now, we just print the message to the console. # Later, this will push messages to a queue for the WebSocket.