Ignoring messages that start with 2 ..

pull/8/head
sgoudham 4 years ago
parent 6e76ec830d
commit 8007c1fb44

@ -435,7 +435,9 @@ class Bot(commands.Bot):
async def on_message(self, message): async def on_message(self, message):
"""Make sure bot messages are not tracked""" """Make sure bot messages are not tracked"""
if message.author.bot: return # Ignoring messages that start with 2 ..
if message.content.startswith("..") or message.author.bot:
return
# Processing the message # Processing the message
await self.process_commands(message) await self.process_commands(message)

Loading…
Cancel
Save