From 120383ced516883d8353768ee207949f0edde309 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Tue, 3 May 2022 21:37:31 +0300 Subject: [PATCH] Moving flask init to beginning of file --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index ae45776..854e077 100644 --- a/bot.py +++ b/bot.py @@ -4,15 +4,15 @@ from core import owncast, __version__ from core.logger import logging -logging.info("Loaded %s, running ameliabot v%s)" % ( +app = Flask(__name__) + +logging.info("Loaded %s, running ameliabot v%s" % ( owncast.config["DEFAULT"]["BotName"], __version__)) # the url of the Owncast API for bot posts owncast_url = "{}/api/integrations/chat/send".format( owncast.config["owncast"]["ServerURL"]) -app = Flask(__name__) - @app.route('/webhook/owncast', methods=['POST']) def respond():