fun.py 文件源码

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

项目:dogbot 作者: slice 项目源码 文件源码
def shibe(self, ctx: DogbotContext):
        """Posts a random Shiba Inu picture."""
        async with ctx.typing():
            try:
                resp = await utils.get_json(ctx.bot.session, SHIBE_ENDPOINT)
            except aiohttp.ClientError:
                return await ctx.send('Failed to contact the Shibe API. Please try again later.')
            await ctx.send(embed=discord.Embed().set_image(url=resp[0]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号