diff --git a/bot.py b/bot.py index a9825d4..6840f69 100644 --- a/bot.py +++ b/bot.py @@ -450,12 +450,8 @@ async def fail(ctx): @bot.command(pass_context=True, brief="sends a random upload from jensmemes.tilera.xyz") async def jensmeme(ctx): await ctx.message.add_reaction("✅") - r = get("https://jensmemes.tilera.xyz/random.php") # get random upload - url = "https://jensmemes.tilera.xyz/" + r.text.split("href='")[1].split("'")[0] - r = get(url)#get the url to the fail - image_data = BytesIO(r.content)#download tthe image and load it into BytesIO - image_data.seek(0) - await ctx.send(file=discord.File(image_data, 'jensmeme.' + url.split(".")[-1]))#send the fail image + r = get("https://jensmemes.tilera.xyz/randomapi.php") # get random upload + await ctx.send(r.text)#send the fail image # ___ ___ _ ______ _ # | \/ | (_) | ___ \ | | # | . . | _ _ ___ _ ___ | |_/ / ___ | |_