[+] Start tasks on init

This commit is contained in:
Hykilpikonna
2020-11-22 18:11:09 -05:00
parent a176cc01df
commit 44937f8ed5
+3
View File
@@ -94,6 +94,9 @@ def startTask(user: str, taskName: str):
def init(bot: Bot, u: Updater):
global updater
updater = u
for user in database.users:
for task in database.userStatus[user]['enabledTasks']:
startTask(user, task)
def start(update: Update, context: CallbackContext):