pressf reaction now shows username (#80)

After reacting to a press f message, bot says
{server nickname}has paid their respects
now says 
{username} has paid their respects
This commit is contained in:
dudeamax99
2019-11-08 22:01:07 -05:00
committed by aikaterna
parent 8f119435da
commit 807a4715ab

View File

@@ -57,5 +57,5 @@ class PressF(commands.Cog):
return
if user.id not in self.channels[str(reaction.message.channel.id)]['reacted']:
if str(reaction.emoji) == "\U0001f1eb":
await reaction.message.channel.send(f"**{user.display_name}** has paid their respects.")
await reaction.message.channel.send(f"**{user.name}** has paid their respects.")
self.channels[str(reaction.message.channel.id)]['reacted'].append(user.id)