aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/halloween/spookyreact.py
diff options
context:
space:
mode:
authorGravatar bradtimmis <[email protected]>2021-10-24 18:26:45 -0400
committerGravatar bradtimmis <[email protected]>2021-10-24 18:26:45 -0400
commit46620dd929b8359af1c086b3e9b6e23633398f6e (patch)
tree84a2b78c23709b5a03d10a72e9e2f244a82e5dbb /bot/exts/holidays/halloween/spookyreact.py
parenttemp: add restructured template as comments (diff)
parentchore: remove single-use constant for json path (diff)
fix: merge conflicts
Merge branch 'color-677' of github.com:brad90four/sir-lancebot into color-677
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