From d43bf242704e1a434636f9e9689b07ed102e375b Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 22 Dec 2024 19:59:02 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sweebot.py b/sweebot.py index 299f234..f768bcc 100644 --- a/sweebot.py +++ b/sweebot.py @@ -19,7 +19,7 @@ run = 0 block = 0 parsed = 0 # Dashboard thread -from flask import Flask, send_file +from flask import Flask, send_file, redirect as redir app = Flask(__name__) @app.route('/') @@ -37,6 +37,9 @@ def parses(): @app.route('/script.js') def script_js(): 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() # YouTube API