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"]