mirror of
https://github.com/RustyRaptor/Fox-V3.git
synced 2026-12-03 16:05:22 -07:00
Dad hotfix. Don't listen to bots
This commit is contained in:
1 parent
5940ab1af9
commit
596865e49d
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user