forked from swee/MeowNex
Auto-start the dashboard process
This commit is contained in:
parent
445f8d35f5
commit
238c4e8c92
1 changed files with 1 additions and 3 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue