dotabase.py 文件源码

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

项目:MangoByte 作者: mdiller 项目源码 文件源码
def talents(self, ctx, *, hero : str):
        """Gets the talents of a specific hero

        You can give this command almost any variant of the hero's name, or the hero's id, in the same format as `{cmdpfx}hero`

        **Examples:**
        `{cmdpfx}talents shadow fiend`"""
        hero = self.lookup_hero(hero)
        if not hero:
            raise UserError("That doesn't look like a hero")

        image = await drawdota.draw_hero_talents(hero)
        image = discord.File(image, f"{hero.name}_talents.png")

        await ctx.send(file=image)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号