From 4577da72d57008c6bfd0a9f9c85365d5930b796f Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 29 Mar 2022 19:29:05 +0200 Subject: [PATCH] [NFC] reorder initializations --- its_matrix_bot/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/its_matrix_bot/__init__.py b/its_matrix_bot/__init__.py index 4ba44cc..32ecc2b 100755 --- a/its_matrix_bot/__init__.py +++ b/its_matrix_bot/__init__.py @@ -17,6 +17,7 @@ class ItSyndikatBot: def __init__(self, config: Config): self.config = config + self.its_api = ItSyndikatApi(config) self.current_open_state = None @@ -27,8 +28,6 @@ class ItSyndikatBot: session_stored_file="", ) - self.its_api = ItSyndikatApi(config) - self.bot = botlib.Bot(creds) self.bot.listener.on_message_event(self.on_message)