1
0
Fork 0
forked from swee/MeowNex

Prepare for contribution #1

Merged
10kilo merged 30 commits from swee/MeowNex:main into main 2024-12-13 12:59:40 -08:00
Showing only changes of commit 4e9da369db - Show all commits

View file

@ -22,13 +22,16 @@ app = Flask(__name__)
@app.route('/')
def index_html():
return send_file("sweebot.html", mimetype='text/html')
return send_file("dashboard.html", mimetype='text/html')
@app.route('/run.txt')
def runs():
return str(run)
@app.route('/block.txt')
def blocks():
return str(block)
@app.route('/link.txt')
def blocks():
return str(parsed)
@app.route('/script.js')
def script_js():
return send_file("script.js", mimetype='application/javascript')
@ -687,6 +690,7 @@ while True:
multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel)
else:
multiline("(" + nick + ") [" + humanbytes(content_len) + " " + str(content_type) + "]", channel)
parsed += 1
except rex.SSLError as ex:
multiline("(" + nick + ") [SSL Error: " + str(ex.message) + "]", channel)
except Exception as ex:
@ -704,6 +708,7 @@ while True:
multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel)
else:
multiline("(" + nick + ") [" + humanbytes(content_len) + " " + str(content_type) + "]", channel)
parsed += 1
except:
print(traceback.format_exc())
elif "JOIN" in text and "#nixsanctuary" in text: