From 751bfe49bb8506cf22ee7260b54efedba396a8d9 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 2 Jul 2020 04:48:22 +0100 Subject: [PATCH] Changing check --- cogs/help/verification.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/help/verification.py b/cogs/help/verification.py index a254ada0..167e6ec3 100644 --- a/cogs/help/verification.py +++ b/cogs/help/verification.py @@ -7,15 +7,18 @@ from discord.ext.commands import command, is_owner # Set up Cog + + class Verification(commands.Cog): def __init__(self, bot): self.bot = bot + self.guild = None # Listens to every message sent @commands.Cog.listener() async def on_message(self, message): # Making sure that the bot doesn't reply to itself - if message.author == self.bot: + if message.author == message.author.bot: return # Defining the message content in a variable