bot early
This commit is contained in:
10
__init__.py
10
__init__.py
@@ -24,6 +24,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":
|
||||||
|
bot.message_loop()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Framework
|
# Framework
|
||||||
@@ -88,11 +93,6 @@ app.register_blueprint(section_pages, url_prefix='/sections')
|
|||||||
app.register_blueprint(compiler_pages, url_prefix='/compiler')
|
app.register_blueprint(compiler_pages, url_prefix='/compiler')
|
||||||
|
|
||||||
|
|
||||||
from src.bot import bot
|
|
||||||
if not app.debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
|
|
||||||
bot.message_loop()
|
|
||||||
|
|
||||||
|
|
||||||
# ------------ Telegram Bot
|
# ------------ Telegram Bot
|
||||||
#from bot import bot_queue
|
#from bot import bot_queue
|
||||||
#@app.route('/bot', methods=['GET', 'POST'])
|
#@app.route('/bot', methods=['GET', 'POST'])
|
||||||
|
|||||||
Reference in New Issue
Block a user