Exemple #1
0
 private void ConnectTwitchChannel()
 {
     if (settings.TwitchUser.Length <= 0 ||
         !settings.twitchEnabled)
         return;
   
     twitchChannel = new Twitch(settings.TwitchUser);
     twitchChannel.Live += OnGoLive;
     twitchChannel.Offline += OnGoOffline;
     adminCommands.Add(new AdminCommand(@"^/viewers\s*$", TwitchViewers));
     adminCommands.Add(new AdminCommand(@"^/bitrate\s*$", TwitchBitrate));
 }
Exemple #2
0
        private void ConnectTwitchChannel()
        {
            if (isClosing)
                return;


            if (String.IsNullOrEmpty(settings.TwitchUser) ||
                !settings.twitchEnabled)
                return;
          
            twitchChannel = new Twitch(settings.TwitchUser.ToLower());
            twitchChannel.Live += OnGoLive;
            twitchChannel.Offline += OnGoOffline;
            twitchChannel.Start();
            adminCommands.Add(new AdminCommand(@"^/viewers\s*$", TwitchViewers));
            adminCommands.Add(new AdminCommand(@"^/bitrate\s*$", TwitchBitrate));
        }