[+] Call init in main

This commit is contained in:
Hykilpikonna
2020-11-22 18:11:25 -05:00
parent 44937f8ed5
commit b4d23df2ed
+3 -1
View File
@@ -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()