private static async void LiveCheckTimer_Elapsed(object sender, ElapsedEventArgs e) { Bot.Log("Checking live Twitch channels"); var c = ConfigManager.GetTwitchMonitoredChannels(); if (c != null && c.Count > 0) { //We reset everything because we are going to set to live just what we will find online right after ConfigManager.ResetAllStreamLiveStatus(); var helixResponse = await twitchApi.GetStreamsWithUserLogins(c.Select(ORCO_PUZZONE => ORCO_PUZZONE.TwitchChannel).ToArray()); foreach (HelixStream hstream in helixResponse.Data) { Bot.OnStreamerLive(hstream.UserName); ConfigManager.SetStreamLiveStatus(true, hstream.UserName); } } }