Skip to content

Commit

Permalink
Print a message when a priority channel goes online;
Browse files Browse the repository at this point in the history
and triggers a switch
  • Loading branch information
DevilXD committed Jan 26, 2022
1 parent 255fb55 commit bad1596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ def on_online(self, channel: Channel):
if channel.priority:
wch = self.watching_channel.get_with_default(None)
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)

def on_offline(self, channel: Channel):
Expand Down

0 comments on commit bad1596

Please sign in to comment.