From 4e9da369dbeb2a4f1bd8c31cc13c0601f53971f8 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 6 Dec 2024 18:30:35 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sweebot.py b/sweebot.py index ab307bf..30c91e7 100644 --- a/sweebot.py +++ b/sweebot.py @@ -22,13 +22,16 @@ app = Flask(__name__) @app.route('/') def index_html(): - return send_file("sweebot.html", mimetype='text/html') + return send_file("dashboard.html", mimetype='text/html') @app.route('/run.txt') def runs(): return str(run) @app.route('/block.txt') def blocks(): return str(block) +@app.route('/link.txt') +def blocks(): + return str(parsed) @app.route('/script.js') def script_js(): return send_file("script.js", mimetype='application/javascript') @@ -687,6 +690,7 @@ while True: multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel) else: multiline("(" + nick + ") [" + humanbytes(content_len) + " " + str(content_type) + "]", channel) + parsed += 1 except rex.SSLError as ex: multiline("(" + nick + ") [SSL Error: " + str(ex.message) + "]", channel) except Exception as ex: @@ -704,6 +708,7 @@ while True: multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel) else: multiline("(" + nick + ") [" + humanbytes(content_len) + " " + str(content_type) + "]", channel) + parsed += 1 except: print(traceback.format_exc()) elif "JOIN" in text and "#nixsanctuary" in text: