cog_info.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Godavaru 作者: Godavaru 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号