aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-11 16:25:26 +0100
committerGravatar Chris <[email protected]>2021-04-11 16:25:26 +0100
commitc2a7f6b407765a0d2a4d4db6e28d54f8a967e40c (patch)
tree5c9c3eef83c94f8cacebf07d5a8b86da7658cb02 /bot/exts/halloween
parentEnsure to await ctx.send() calls (diff)
parentMerge pull request #666 from onerandomusername/remove-topic (diff)
Merge branch 'main' into Enforce-image-processing-concurrency
Diffstat (limited to 'bot/exts/halloween')
-rw-r--r--bot/exts/halloween/candy_collection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/halloween/candy_collection.py b/bot/exts/halloween/candy_collection.py
index 0cb37ecd..40e21f40 100644
--- a/bot/exts/halloween/candy_collection.py
+++ b/bot/exts/halloween/candy_collection.py
@@ -47,6 +47,9 @@ class CandyCollection(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message: discord.Message) -> None:
"""Randomly adds candy or skull reaction to non-bot messages in the Event channel."""
+ # Ignore messages in DMs
+ if not message.guild:
+ return
# make sure its a human message
if message.author.bot:
return