aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/halloween/spookyreact.py
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-11-09 22:48:30 +0100
committerGravatar Numerlor <[email protected]>2021-11-09 22:48:30 +0100
commitd4e47c80aedfdd82a6aa4ce81a8ade4219819d0c (patch)
tree6a1595cd648c52232593a82a84731de6c027a955 /bot/exts/holidays/halloween/spookyreact.py
parentAdd selective trace loggers (diff)
parentMerge pull request #915 from python-discord/Add-border-around-bat (diff)
Merge remote-tracking branch 'upstream/main' into coloredlogs
Diffstat (limited to 'bot/exts/holidays/halloween/spookyreact.py')
-rw-r--r--bot/exts/holidays/halloween/spookyreact.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/holidays/halloween/spookyreact.py b/bot/exts/holidays/halloween/spookyreact.py
index 25e783f4..e228b91d 100644
--- a/bot/exts/holidays/halloween/spookyreact.py
+++ b/bot/exts/holidays/halloween/spookyreact.py
@@ -47,12 +47,12 @@ class SpookyReact(Cog):
Short-circuit helper check.
Return True if:
- * author is the bot
+ * author is a bot
* prefix is not None
"""
- # Check for self reaction
- if message.author == self.bot.user:
- log.debug(f"Ignoring reactions on self message. Message ID: {message.id}")
+ # Check if message author is a bot
+ if message.author.bot:
+ log.debug(f"Ignoring reactions on bot message. Message ID: {message.id}")
return True
# Check for command invocation