forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
5e0235919a
commit
d43bf24270
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,7 @@ run = 0
|
||||||
block = 0
|
block = 0
|
||||||
parsed = 0
|
parsed = 0
|
||||||
# Dashboard thread
|
# Dashboard thread
|
||||||
from flask import Flask, send_file
|
from flask import Flask, send_file, redirect as redir
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
@ -37,6 +37,9 @@ def parses():
|
||||||
@app.route('/script.js')
|
@app.route('/script.js')
|
||||||
def script_js():
|
def script_js():
|
||||||
return send_file("script.js", mimetype='application/javascript')
|
return send_file("script.js", mimetype='application/javascript')
|
||||||
|
@app.route('/docs/config')
|
||||||
|
def config_docs():
|
||||||
|
return redir("https://git.swee.codes/swee/MeowNex/src/branch/main/docs/config.md")
|
||||||
threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()
|
threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()
|
||||||
|
|
||||||
# YouTube API
|
# YouTube API
|
||||||
|
|
Loading…
Reference in a new issue