[+] Create tasks, cache, and updater variables

This commit is contained in:
Hykilpikonna
2020-11-22 18:08:48 -05:00
parent 68cd0aaef4
commit 4c1afe9d93
+9
View File
@@ -36,6 +36,15 @@ urlValidator = re.compile(
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
database = Database()
tasks: {str: {str: Job}} = {}
cache: {str: {str: str}} = {}
updater: Updater = {}
# Initialize bot
def init(bot: Bot, u: Updater):
global updater
updater = u
def start(update: Update, context: CallbackContext):