thanks catbox very cool

This commit is contained in:
expect 2025-06-21 18:24:29 +02:00
parent e130cdfd93
commit 57428339b3

8
bot.py
View file

@ -340,10 +340,10 @@ async def stats(ctx):
async def mem(ctx): async def mem(ctx):
if showmemenabled != "true": if showmemenabled != "true":
return return
memory = load_memory() command = """curl -F "reqtype=fileupload" -F "time=1h" -F "fileToUpload=@memory.json" https://litterbox.catbox.moe/resources/internals/api.php"""
memory_text = json.dumps(memory, indent=4) memorylitter = subprocess.run(command, shell=True, capture_output=True, text=True)
with open(MEMORY_FILE, "r") as f: print(memorylitter)
await send_message(ctx, file=discord.File(f, MEMORY_FILE)) await send_message(ctx, memorylitter.stdout.strip())
def improve_sentence_coherence(sentence): def improve_sentence_coherence(sentence):
sentence = sentence.replace(" i ", " I ") sentence = sentence.replace(" i ", " I ")