Update sweebot.py
All checks were successful
Check syntax / check (push) Successful in 8s

This commit is contained in:
Nova Cat 2024-12-22 19:59:02 -08:00
parent 5e0235919a
commit d43bf24270

View file

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