diff --git a/bot.py b/bot.py index 016f744..81824a0 100644 --- a/bot.py +++ b/bot.py @@ -2214,11 +2214,11 @@ async def krecimy_pornola(ctx): ctx.reply("Jak ładnie szefa poprosisz.") -@app.route("/", methods=["POST"]) +@app.route("/", methods=["GET"]) def answer_external_command(): record = json.loads(request.data) logger.info(record) - answer_data = None + answer_data = "TXT" if "UUID" in record and "QUERY" in record and "AUTHOR" in record: answer_data = "Query logged" return_data = (