forked from IPD/Foxtrot
added cat!
This commit is contained in:
parent
80a58cc32a
commit
0bb02f967d
1 changed files with 8 additions and 0 deletions
8
bot.py
8
bot.py
|
@ -34,6 +34,14 @@ async def fox(ctx):
|
|||
file = File(io.BytesIO(await resp.read()),filename='fox.jpg')
|
||||
await ctx.send(random.choice(foxmsgs),file=file)
|
||||
|
||||
@bot.command(brief="cattttttt")
|
||||
async def cat(ctx):
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get('https://some-random-api.ml/animal/cat') as resp:
|
||||
json = await resp.json()
|
||||
await ctx.send(json["fact"])
|
||||
await ctx.send(json["image"])
|
||||
|
||||
|
||||
@bot.command(brief="gives you a fluffy panda")
|
||||
async def panda(ctx):
|
||||
|
|
Loading…
Reference in a new issue