Update sweebot.py
All checks were successful
Check syntax / check (push) Successful in 7s

This commit is contained in:
Nova Cat 2024-12-30 16:10:12 -08:00
parent 159f884a21
commit e79a9b3aac

View file

@ -54,7 +54,7 @@ def lastquery_txt():
@app.route('/docs/config')
def config_docs():
return redir("https://git.swee.codes/swee/MeowNex/src/branch/main/docs/config.md")
@app.route('/response/<uuid>')
@app.route('/response/<uuidd>')
def ai_response_truncate(uuidd):
if uuidd in responses_ai:
res = responses_ai[uuidd]
@ -561,8 +561,8 @@ while True:
if num == 5:
broke = True
break
elif len(i) > 75:
mtline += "\n" + i[:75] + "..."
elif len(i) > 256:
mtline += "\n" + i[:256] + "..."
broke = True
else:
mtline += "\n" + i