Skip to content

Commit

Permalink
Exclude DM channels, as we dont have permission to log things there.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarlos89 committed Nov 29, 2023
1 parent 493f36f commit 3adaac3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zorak/cogs/admin/admin_automod_spam_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ async def on_message(self, message):
# Dont catch Zorak
if message.author.bot:
return
# Dont care about DM channels
if isinstance(message.channel, discord.DMChannel):
return

# new speaker. Welcome to auto mod.
if message.author.id not in self.records:
Expand Down

0 comments on commit 3adaac3

Please sign in to comment.