Skip to content

Commit 686f6b4

Browse files
committed
Don't handle commands on echo messages by default.
1 parent db8808b commit 686f6b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

twitchio/ext/commands/bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ async def event_message(self, message):
468468
message: :class:`.Message`
469469
Message object containing relevant information.
470470
"""
471+
if message.echo:
472+
return
473+
471474
await self.handle_commands(message)
472475

473476
def command(

0 commit comments

Comments
 (0)