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()