return in on_message handler if author id is same is bot id
@@ -46,6 +46,9 @@ class Events(commands.Cog):
@commands.Cog.listener()
async def on_message(self, m):
+ if m.author.id == self.bot.user.id:
+ return
+
self.d.msg_count += 1
if m.content.startswith(f'<@!{self.bot.user.id}>'):
