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:
JustMaffie
2017-07-06 23:35:08 +02:00
committed by Jeremy Zhang
parent bcfa4ae4e9
commit dc7d825564
8 changed files with 49 additions and 2 deletions

View File

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