Dad hotfix. Don't listen to bots

pull/146/head
bobloy 4 years ago
parent 5940ab1af9
commit 596865e49d

@ -85,6 +85,8 @@ class Dad(Cog):
@commands.Cog.listener()
async def on_message_without_command(self, message: discord.Message):
if message.author.bot:
return
guild: discord.Guild = getattr(message, "guild", None)
if guild is None:
return

Loading…
Cancel
Save