forked from gooberinc/goober
thanks catbox very cool
This commit is contained in:
parent
e130cdfd93
commit
57428339b3
1 changed files with 4 additions and 4 deletions
8
bot.py
8
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 ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue