From 49a4c10d0d6abc1370febb9bfe7be9489b167547 Mon Sep 17 00:00:00 2001 From: xfnw Date: Mon, 22 Nov 2021 16:47:52 -0500 Subject: [PATCH] upload meme as an attachment ive not tested this --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 59b4899..ae1358e 100644 --- a/bot.py +++ b/bot.py @@ -161,7 +161,9 @@ async def meme(ctx): async with aiohttp.ClientSession() as session: async with session.get('https://api.shitfest.net/v2/random.php') as resp: json = await resp.json() - await ctx.send(json["mp4"]) + async with session.get(f"https://buckets.cat.casa/memestorage/mp4/{json['mp4_hash']}.mp4") as mp4: + file = File(io.BytesIO(await mp4.read()), filename=json['name']+'.mp4') + await ctx.send("m e m e", file=file) @bot.command(brief='makes things gay') -- 2.45.2