From 57428339b3057cac471d7f7b1e30db15acb330c8 Mon Sep 17 00:00:00 2001 From: expect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Sat, 21 Jun 2025 18:24:29 +0200 Subject: [PATCH] thanks catbox very cool --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 7c394e1..e6a30fa 100644 --- a/bot.py +++ b/bot.py @@ -340,10 +340,10 @@ async def stats(ctx): async def mem(ctx): if showmemenabled != "true": return - memory = load_memory() - memory_text = json.dumps(memory, indent=4) - with open(MEMORY_FILE, "r") as f: - await send_message(ctx, file=discord.File(f, MEMORY_FILE)) + command = """curl -F "reqtype=fileupload" -F "time=1h" -F "fileToUpload=@memory.json" https://litterbox.catbox.moe/resources/internals/api.php""" + memorylitter = subprocess.run(command, shell=True, capture_output=True, text=True) + print(memorylitter) + await send_message(ctx, memorylitter.stdout.strip()) def improve_sentence_coherence(sentence): sentence = sentence.replace(" i ", " I ")