Skip to content

Commit

Permalink
add missing variable prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Oct 6, 2022
1 parent 38750b9 commit 3c4da25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftsbot/cogs/antispam.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def on_ready(self):
@commands.Cog.listener()
async def on_reaction_add(self, reaction, user):
# Check if user joined within last 7 days
if hasattr(message.author, 'joined_at') and (discord.utils.utcnow() - user.joined_at).days <= 7:
if hasattr(reaction.message.author, 'joined_at') and (discord.utils.utcnow() - user.joined_at).days <= 7:
if user.id not in self.reactionspammers:
self.reactionspammer[user.id] = 0
self.reactionspammer[user.id] += 1
Expand Down

0 comments on commit 3c4da25

Please sign in to comment.