From: Alexander Schmidt Date: Sat, 3 Oct 2020 10:46:21 +0000 (+0200) Subject: refactoring X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/commitdiff_plain/d9f14eda67869d8dec02066325fa47995bf4aa0d refactoring --- diff --git a/src/presence.py b/src/presence.py index 2f348d6..0ab1ad4 100644 --- a/src/presence.py +++ b/src/presence.py @@ -58,16 +58,12 @@ class Presence: async def _do_watch(self, client): while not self._stop: - self._log(logging.INFO, "WATCHING...") - await client.sync() - if await self._joined_room_id(client) == None: self._is_member = False self._tickle_fifo() else: self._is_member = True - await asyncio.sleep(3.0) def _tickle_fifo(self):