This commit is contained in:
2024-04-09 00:16:08 +02:00
parent e5f26566ca
commit 3b32cdc4e7
+12 -12
View File
@@ -2214,19 +2214,19 @@ async def krecimy_pornola(ctx):
ctx.reply("Jak ładnie szefa poprosisz.") ctx.reply("Jak ładnie szefa poprosisz.")
@app.route("/", methods=["GET"]) @app.route("/conjurer", methods=["GET"])
def answer_external_command(): def answer_external_command():
record = json.loads(request.data) #record = json.loads(request.data)
logger.info(record) #logger.info(record)
answer_data = "TXT" #answer_data = "TXT"
if "UUID" in record and "QUERY" in record and "AUTHOR" in record: #if "UUID" in record and "QUERY" in record and "AUTHOR" in record:
answer_data = "Query logged" # answer_data = "Query logged"
return_data = ( #return_data = (
jsonify(isError=False, message="Success", statusCode=200, data=answer_data), # jsonify(isError=False, message="Success", statusCode=200, data=answer_data),
200, # 200,
) #)
return return_data #return return_data
return jsonify("SUCCESS")
def flask_debug(_logger): def flask_debug(_logger):
""" """