From 238c4e8c92344d0ce3d78f2f792c27a5ffcf06f2 Mon Sep 17 00:00:00 2001 From: 10kilo <10kilo@noreply@swee.codes> Date: Fri, 6 Dec 2024 18:00:51 -0800 Subject: [PATCH] Auto-start the dashboard process --- sweebot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sweebot.py b/sweebot.py index f5e9c14..307d2a9 100644 --- a/sweebot.py +++ b/sweebot.py @@ -25,16 +25,14 @@ def index(): return send_file("sweebot.html", mimetype='text/html') @app.route('/run.txt') def run(): - wait(2) return str(run) @app.route('/block.txt') def block(): - wait(2) return str(block) @app.route('/script.js') def script(): return send_file("script.js", mimetype='application/javascript') -threading.Thread(target=app.run, daemon=True) +threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start() DEVELOPER_KEY = environ["ytapi"]