diff options
Diffstat (limited to 'slack/api.py')
-rw-r--r-- | slack/api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slack/api.py b/slack/api.py index 9d6ac24..66cd687 100644 --- a/slack/api.py +++ b/slack/api.py @@ -73,7 +73,7 @@ class SlackWorkspace: self.name = name self.config = shared.config.create_workspace_config(self.name) self.api = SlackApi(self) - self.connected = False + self.is_connected = False self.nick = "TODO" # Maybe make private, so you have to use get_user? Maybe make get_user a getter, though don't know if that's a problem since it's async self.users: Dict[str, SlackUser] = {} @@ -101,6 +101,8 @@ class SlackWorkspace: # print(rtm_connect) # print([c["name"] for c in user_channels]) + self.is_connected = True + weechat.bar_item_update("input_text") async def get_user(self, id: str) -> SlackUser: if id in self.users: |