[+] Call init in main
This commit is contained in:
+3
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user