Not excluding messages from "self" in the return statement
This commit is contained in:
@@ -22,11 +22,9 @@ class TwitchBot(commands.Bot):
|
|||||||
|
|
||||||
async def event_message(self, message):
|
async def event_message(self, message):
|
||||||
"""Runs every time a message is sent in chat."""
|
"""Runs every time a message is sent in chat."""
|
||||||
if message.echo:
|
# The 'echo' check is temporarily disabled to allow self-messaging for testing.
|
||||||
# This is a message from the bot itself (the authenticated user).
|
# if message.echo:
|
||||||
# We'll log it for debugging but won't process it further.
|
# return # Ignore messages sent by the bot itself
|
||||||
print(f"Echo message from {message.author.name} in #{self.channel_name}: {message.content}")
|
|
||||||
return
|
|
||||||
|
|
||||||
# For now, we just print the message to the console.
|
# For now, we just print the message to the console.
|
||||||
# Later, this will push messages to a queue for the WebSocket.
|
# Later, this will push messages to a queue for the WebSocket.
|
||||||
|
|||||||
Reference in New Issue
Block a user