Fix is_watching not working

This commit is contained in:
DevilXD committed 2022-01-11 19:06:35 +01:00
1 parent 7f685dd8a4
commit a4d708eed8
1 file changed
+2 -1
+2 -1
View File
@@ -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):
"""