From e1c86cdab138bd8c95f05b068db6ed156e4dafaf Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Wed, 8 Feb 2017 07:14:13 +0100 Subject: [PATCH] flag for bot --- __init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index fae53d5..c504f24 100644 --- a/__init__.py +++ b/__init__.py @@ -28,9 +28,11 @@ monkey.patch_all() from .compiler import start_workers #start_workers(1,1,1) -from src.bot import bot -#if not app.debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true": -bot.message_loop() + +if cfg.bot_active: + from src.bot import bot + #if not app.debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true": + bot.message_loop()