This commit is contained in:
+2
-2
@@ -550,7 +550,7 @@ def create_app(config=None):
|
||||
# not down, and a 503 here would take the site out of the load
|
||||
# balancer for it (OPS-012).
|
||||
if app.config['ENABLE_DISCORD_BOT']:
|
||||
from app.discord_bot import bot_status
|
||||
from app.discord import bot_status
|
||||
|
||||
health_data['discord_bot'] = bot_status()
|
||||
|
||||
@@ -750,7 +750,7 @@ def create_app(config=None):
|
||||
# Start the Discord bot for notifications
|
||||
if app.config['ENABLE_DISCORD_BOT']:
|
||||
try:
|
||||
from app.discord_bot import start_bot
|
||||
from app.discord import start_bot
|
||||
|
||||
start_bot(flask_app=app)
|
||||
except Exception: # the site must come up even if the bot cannot
|
||||
|
||||
Reference in New Issue
Block a user