Print a message when a priority channel goes online;
and triggers a switch
This commit is contained in:
1 parent
255fb55963
commit
bad1596324
1 file changed
+1
@@ -437,6 +437,7 @@ class Twitch:
|
|||||||
if channel.priority:
|
if channel.priority:
|
||||||
wch = self.watching_channel.get_with_default(None)
|
wch = self.watching_channel.get_with_default(None)
|
||||||
if wch is not None and not wch.priority and self.can_watch(channel):
|
if wch is not None and not wch.priority and self.can_watch(channel):
|
||||||
|
self.gui.print(f"{channel.name} goes ONLINE, switching...")
|
||||||
self.watch(channel)
|
self.watch(channel)
|
||||||
|
|
||||||
def on_offline(self, channel: Channel):
|
def on_offline(self, channel: Channel):
|
||||||
|
|||||||
Reference in new issue
Block a user