fix @mention bug

This commit is contained in:
Matthias Nadler 2019-06-29 20:30:40 +02:00
parent 7ba1b2eb56
commit 888b66102a

View File

@ -260,6 +260,9 @@ class Help(commands.Cog):
# @mention and @debug commands # @mention and @debug commands
@commands.Cog.listener() @commands.Cog.listener()
async def on_message(self, message): async def on_message(self, message):
if message.author == self.bot.owner:
return
if message.content.startswith("@mention"): if message.content.startswith("@mention"):
channel = message.channel channel = message.channel
if not isinstance(channel, discord.TextChannel): if not isinstance(channel, discord.TextChannel):