mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 12:15:24 +02:00
Implemented Bot Admin Blueprint
Todo and not yet fully functional yet Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing Fix Titan Dev thing
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python2
|
||||
from titanembeds.app import app
|
||||
import subprocess
|
||||
|
||||
def init_debug():
|
||||
import os
|
||||
@ -30,6 +31,14 @@ def init_debug():
|
||||
decoded = None
|
||||
return jsonify(session_cookie=decoded)
|
||||
|
||||
@app.route("/github-update", methods=["POST"])
|
||||
def github_update():
|
||||
try:
|
||||
subprocess.Popen("git pull", shell=True).wait()
|
||||
except OSError:
|
||||
return "ERROR"
|
||||
|
||||
return "OK"
|
||||
if __name__ == "__main__":
|
||||
init_debug()
|
||||
app.run(host="0.0.0.0",port=3000,debug=True,processes=3)
|
||||
|
Reference in New Issue
Block a user