diff options
| author | 2021-10-03 15:40:36 +0200 | |
|---|---|---|
| committer | 2021-10-03 15:40:36 +0200 | |
| commit | efbb3813a9f4bd58c186dc17db0331a37e5d4d3f (patch) | |
| tree | 8bfa279266b1d539136517ba2f65aadc8988e9c8 | |
| parent | Merge pull request #877 from python-discord/bug/875/emoji-offet-naive (diff) | |
| parent | Ignore bot messages for spooky react (diff) | |
Merge pull request #891 from python-discord/spooky-ignore-bots
Ignore all bot messages for spooky react
| -rw-r--r-- | bot/exts/holidays/halloween/spookyreact.py | 8 | 
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 | 
