rainbow6siege.py 文件源码

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

项目:tmerc-cogs 作者: tmercswims 项目源码 文件源码
def _profile(self, ctx: commands.Context,
                       player: str, platform: str="uplay"):
        """Get the profile for the given player.

        'platform' must be one of 'uplay', 'xbox', or 'playstation', and
        defaults to 'uplay'.
        """

        p = await self.get_player(player, platform)
        if p is None:
            return

        await p.check_general()
        await p.check_level()

        e = discord.Embed(description="Player Summary")
        e.set_author(name=p.name, url=p.url)
        e.set_thumbnail(url=p.icon_url)
        e.add_field(name="Level", value=p.level)
        e.add_field(name="XP", value=p.xp)
        e.add_field(name="Platform", value=p.platform)

        await self.bot.say(embed=e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号