Skip to content

Commit

Permalink
fix: log *who* reacted x to delete a fred message
Browse files Browse the repository at this point in the history
  • Loading branch information
Borketh committed Oct 11, 2024
1 parent ca002aa commit f71cffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fred/fred.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def on_ready(self):

async def on_reaction_add(self, reaction: nextcord.Reaction, user: nextcord.User) -> None:
if not user.bot and reaction.message.author.bot and reaction.emoji == "❌":
self.logger.info("Removing my own message because someone reacted with ❌.")
self.logger.info(f"Removing my own message because {user.display_name} reacted with ❌.")
await reaction.message.delete()

def setup_DB(self):
Expand Down

0 comments on commit f71cffa

Please sign in to comment.