Moving flask init to beginning of file
This commit is contained in:
parent
4f53833cc2
commit
120383ced5
6
bot.py
6
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():
|
||||
|
|
Loading…
Reference in New Issue