From b4d23df2edef657e0536dbb023d69e592de34159 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Nov 2020 18:11:25 -0500 Subject: [PATCH] [+] Call init in main --- src/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index 2656a44..52b5e1f 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,7 +1,6 @@ import logging import telegram -from telegram.ext import Updater from src.commands import * from src.constants import token @@ -26,5 +25,8 @@ if __name__ == '__main__': commands = [start, ls, touch, rm, nano, test, interval, enable, disable] [dispatcher.add_handler(createCommand(cmd)) for cmd in commands] + # Init commands + init(bot, updater) + # Start bot updater.start_polling()