lul.py 文件源码

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

项目:Tuxedo 作者: ClarityMoe 项目源码 文件源码
def cat(self, ctx):
        with ctx.channel.typing():
            with aiohttp.ClientSession() as session:
                async with session.get("http://random.cat/meow") as r:
                    r = await r.read()
                    url = json.JSONDecoder().decode(r.decode("utf-8"))["file"]
                    await ctx.send(embed=discord.Embed(title="Random Cat").set_image(url=url).set_footer(text="Powered by random.cat"))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号