From 596865e49d6e0a8a43b8cd5bceea519c34d84d90 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 24 Sep 2020 12:11:32 -0400 Subject: [PATCH] Dad hotfix. Don't listen to bots --- dad/dad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dad/dad.py b/dad/dad.py index edf98c5..0be7fce 100644 --- a/dad/dad.py +++ b/dad/dad.py @@ -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