From 4c1afe9d93ede7a6ab4787b8cde67da81e6e232d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Nov 2020 18:08:48 -0500 Subject: [PATCH] [+] Create tasks, cache, and updater variables --- src/commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands.py b/src/commands.py index e5b7def..fd143ea 100644 --- a/src/commands.py +++ b/src/commands.py @@ -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):