From 51e68a77ab0d47818ed51e7c24f3a5e100e9b23b Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 9 Apr 2024 00:01:19 +0200 Subject: [PATCH] Test --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = (