diff options
| author | 2020-09-20 12:03:04 +0200 | |
|---|---|---|
| committer | 2020-09-20 12:45:28 +0200 | |
| commit | 3fea32523d84ee5e2ba0e68710191ffb61220d58 (patch) | |
| tree | 1f2e975ceae70e75b1447d406cd929a2878373a1 | |
| parent | Determine eligible duckpond emojis dynamically (diff) | |
Ignore non-staff messages for our duckpond
Some of our members have expressed concern that their messages would be
"ducked" by staff members and relayed to the staff-only duckpond. Since
duckpond is supposed to be a funny, staff-only affair, I've made
duckpond ignore messages from non-staff members.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
| -rw-r--r-- | bot/cogs/duck_pond.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/bot/cogs/duck_pond.py b/bot/cogs/duck_pond.py index e1aceb482..66e862ab2 100644 --- a/bot/cogs/duck_pond.py +++ b/bot/cogs/duck_pond.py @@ -133,7 +133,11 @@ class DuckPond(Cog):          message = await channel.fetch_message(payload.message_id)          member = discord.utils.get(message.guild.members, id=payload.user_id) -        # Is the member a human and a staff member? +        # Was the message sent by a human staff member? +        if not self.is_staff(message.author) or message.author.bot: +            return + +        # Is the reactor a human staff member?          if not self.is_staff(member) or member.bot:              return | 
