def status(self, ctx):
"""Display the current status of the specified member.
If the member is not specified or an invalid member argument is passed, the member is the author.
**Usage:** `g_status [member]`
**Permission:** User"""
if len(ctx.message.mentions) == 0:
user = ctx.message.author
a = ", you are "
else:
user = ctx.message.mentions[0]
a = " is "
if user.game is None:
game = "Nothing."
footer = "Maybe you should get out into the world. Meet some people. Could be good for you."
else:
game = str(user.game)
footer = "Hope it's a fun one!"
em = discord.Embed(title=user.display_name+a+"playing:",description="`{}`".format(game),color=user.color)
em.set_footer(text=footer)
await ctx.send(embed=em)
评论列表
文章目录