diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-15 19:01:58 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 8065cf011b897de72330913c13aa11a7b3666368 (patch) | |
tree | 3daecce60649d8c51605eb462408050b24ca3656 /slack | |
parent | 21979c3e6125170fc5ff024d20dfb12e7a25100e (diff) | |
download | wee-slack-8065cf011b897de72330913c13aa11a7b3666368.tar.gz |
Log connected/disconnected from workspace
We should create a server buffer for each workspace, but print to the
core buffer for now.
Diffstat (limited to 'slack')
-rw-r--r-- | slack/slack_workspace.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 61f86a7..0fab5b2 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -212,8 +212,10 @@ class SlackWorkspace: async def connect(self) -> None: if self.is_connected: return + weechat.prnt("", f"Connecting to workspace {self.name}") self._connect_task = create_task(self._connect()) await self._connect_task + weechat.prnt("", f"Connected to workspace {self.name}") self._connect_task = None async def _connect(self) -> None: @@ -454,6 +456,7 @@ class SlackWorkspace: def disconnect(self): self.is_connected = False + weechat.prnt("", f"Disconnected from workspace {self.name}") if self._connect_task: self._connect_task.cancel() |