From 24e69f9feaaffe9a25eba06380fbe945c68c2cd9 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 16 Jan 2017 15:06:11 -0800 Subject: [PATCH] client secret can be the flask secrety key --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 056bdd8..a484ea8 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ import requests import json app = Flask(__name__) -app.secret_key = "doafkjgasfjk" +app.secret_key = config['client-secret'] _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'} r = requests.post(_endpoint, headers=headers, data=json.dumps(payload)) return jsonify(j=json.loads(r.content)) - + @app.route("/set_username", methods=["GET"]) def get_set_username(): return render_template("set_username.html")