From e79a9b3aacbefe17d470632456ab792839fe4835 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 30 Dec 2024 16:10:12 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sweebot.py b/sweebot.py index bc3d659..824b3b8 100644 --- a/sweebot.py +++ b/sweebot.py @@ -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/') +@app.route('/response/') 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