Skip to content

Commit

Permalink
Merge pull request #401 from TwitchLib/Fix-example
Browse files Browse the repository at this point in the history
Fix livemonitor example
  • Loading branch information
Mahsaap authored Jun 25, 2024
2 parents 8e57e96 + d09871e commit 05dddad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ namespace Example
API.Settings.ClientId = "";
API.Settings.AccessToken = "";

Monitor = new LiveStreamMonitorService(API, 60);

List<string> lst = new List<string>{ "ID1", "ID2" };
Monitor.SetChannelsById(lst);
Monitor = new LiveStreamMonitorService(API, 60);

Monitor.OnStreamOnline += Monitor_OnStreamOnline;
Monitor.OnStreamOffline += Monitor_OnStreamOffline;
Expand All @@ -44,6 +41,8 @@ namespace Example
Monitor.OnServiceStarted += Monitor_OnServiceStarted;
Monitor.OnChannelsSet += Monitor_OnChannelsSet;

List<string> lst = new List<string>{ "ID1", "ID2" };
Monitor.SetChannelsById(lst);

Monitor.Start(); //Keep at the end!
Expand Down

0 comments on commit 05dddad

Please sign in to comment.