From 110b8da977dea2e61a150c8a0466bfa77ddfaba6 Mon Sep 17 00:00:00 2001 From: riderius Date: Fri, 14 Oct 2022 17:43:33 +0300 Subject: [PATCH] Stat: add footer for user Signed-off-by: riderius --- Stat/stat.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Stat/stat.py b/Stat/stat.py index a0c094a..2bba65d 100644 --- a/Stat/stat.py +++ b/Stat/stat.py @@ -37,4 +37,10 @@ class Stat(commands.Cog): joined_at = time.strptime(str(member.joined_at), '%Y-%m-%d %H:%M:%S.%f') joined_at = time.strftime('%a, %d %b %Y %H:%M:%S +0000', joined_at) stat.add_field(name="Joined at:", value=joined_at) + + if ctx.message.author.nick: + stat.set_footer(text=f"Request by {ctx.message.author} aka {ctx.message.author.nick} | {ctx.message.author.id}") + else: + stat.set_footer(text=f"Request by {ctx.message.author} | {ctx.message.author.id}") + await ctx.send(embed=stat) -- 2.45.2