From 3b32cdc4e717d1240261275c3e7b115a7ce8addd Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 9 Apr 2024 00:16:08 +0200 Subject: [PATCH] Fix? --- bot.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bot.py b/bot.py index 09e846c..c773edd 100644 --- a/bot.py +++ b/bot.py @@ -2214,19 +2214,19 @@ async def krecimy_pornola(ctx): ctx.reply("Jak ładnie szefa poprosisz.") -@app.route("/", methods=["GET"]) +@app.route("/conjurer", methods=["GET"]) def answer_external_command(): - record = json.loads(request.data) - logger.info(record) - answer_data = "TXT" - if "UUID" in record and "QUERY" in record and "AUTHOR" in record: - answer_data = "Query logged" - return_data = ( - jsonify(isError=False, message="Success", statusCode=200, data=answer_data), - 200, - ) - return return_data - + #record = json.loads(request.data) + #logger.info(record) + #answer_data = "TXT" + #if "UUID" in record and "QUERY" in record and "AUTHOR" in record: + # answer_data = "Query logged" + #return_data = ( + # jsonify(isError=False, message="Success", statusCode=200, data=answer_data), + # 200, + #) + #return return_data + return jsonify("SUCCESS") def flask_debug(_logger): """