Skip to content

Commit 05dddad

Browse files
authored
Merge pull request #401 from TwitchLib/Fix-example
Fix livemonitor example
2 parents 8e57e96 + d09871e commit 05dddad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ namespace Example
3232
API.Settings.ClientId = "";
3333
API.Settings.AccessToken = "";
3434

35-
Monitor = new LiveStreamMonitorService(API, 60);
36-
37-
List<string> lst = new List<string>{ "ID1", "ID2" };
38-
Monitor.SetChannelsById(lst);
35+
Monitor = new LiveStreamMonitorService(API, 60);
3936

4037
Monitor.OnStreamOnline += Monitor_OnStreamOnline;
4138
Monitor.OnStreamOffline += Monitor_OnStreamOffline;
@@ -44,6 +41,8 @@ namespace Example
4441
Monitor.OnServiceStarted += Monitor_OnServiceStarted;
4542
Monitor.OnChannelsSet += Monitor_OnChannelsSet;
4643

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

4847
Monitor.Start(); //Keep at the end!
4948

0 commit comments

Comments
 (0)