1
0
Fork 0
forked from swee/MeowNex

Auto-start the dashboard process

This commit is contained in:
10KB/s 2024-12-06 18:00:51 -08:00
parent 445f8d35f5
commit 238c4e8c92

View file

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