From 8007c1fb4477e924fa84eebb24d2995a6212fba5 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 26 Aug 2020 16:42:45 +0100 Subject: [PATCH] Ignoring messages that start with 2 .. --- bot/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/__init__.py b/bot/__init__.py index 0a907fd1..47aa9093 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -435,7 +435,9 @@ class Bot(commands.Bot): async def on_message(self, message): """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 await self.process_commands(message)