~riderius/riderius-cogs

110b8da977dea2e61a150c8a0466bfa77ddfaba6 — riderius 11 months ago 10fdf00
Stat: add footer for user

Signed-off-by: riderius <riderius.help@gmail.com>
1 files changed, 6 insertions(+), 0 deletions(-)

M Stat/stat.py
M Stat/stat.py => Stat/stat.py +6 -0
@@ 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)