mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
Fix?
This commit is contained in:
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user