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]))
评论列表
文章目录