From a4d708eed8c00bf55165880531f1c44aaea15280 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Tue, 11 Jan 2022 19:06:35 +0100 Subject: [PATCH] Fix is_watching not working --- twitch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index b4b7f11..52e537a 100644 --- a/twitch.py +++ b/twitch.py @@ -179,7 +179,8 @@ class Twitch: await asyncio.sleep(start_time + 1 - time()) def is_watching(self, channel: Channel) -> bool: - return self._watching_channel is not None and self._watching_channel == channel + watching_channel = self._watching_channel.get_with_default(None) + return watching_channel is not None and watching_channel == channel async def _run(self): """