Dad hotfix. Don't listen to bots

This commit is contained in:
bobloy 2020-09-24 12:11:32 -04:00
parent 5940ab1af9
commit 596865e49d

View File

@ -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