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):
|
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 ")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue