flag for bot

This commit is contained in:
Andreas Stephanides
2017-02-08 07:14:13 +01:00
parent 127bc9c557
commit e1c86cdab1

View File

@@ -28,9 +28,11 @@ monkey.patch_all()
from .compiler import start_workers from .compiler import start_workers
#start_workers(1,1,1) #start_workers(1,1,1)
from src.bot import bot
#if not app.debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true": if cfg.bot_active:
bot.message_loop() from src.bot import bot
#if not app.debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
bot.message_loop()