mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
client secret can be the flask secrety key
This commit is contained in:
parent
cd9e21fa87
commit
24e69f9fea
4
app.py
4
app.py
@ -4,7 +4,7 @@ import requests
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.secret_key = "doafkjgasfjk"
|
app.secret_key = config['client-secret']
|
||||||
|
|
||||||
_DISCORD_API_BASE = "https://discordapp.com/api/v6"
|
_DISCORD_API_BASE = "https://discordapp.com/api/v6"
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ def post_create_message():
|
|||||||
headers = {'Authorization': 'Bot ' + config['bot-token'], 'Content-Type': 'application/json'}
|
headers = {'Authorization': 'Bot ' + config['bot-token'], 'Content-Type': 'application/json'}
|
||||||
r = requests.post(_endpoint, headers=headers, data=json.dumps(payload))
|
r = requests.post(_endpoint, headers=headers, data=json.dumps(payload))
|
||||||
return jsonify(j=json.loads(r.content))
|
return jsonify(j=json.loads(r.content))
|
||||||
|
|
||||||
@app.route("/set_username", methods=["GET"])
|
@app.route("/set_username", methods=["GET"])
|
||||||
def get_set_username():
|
def get_set_username():
|
||||||
return render_template("set_username.html")
|
return render_template("set_username.html")
|
||||||
|
Loading…
Reference in New Issue
Block a user