internal void Service_OnNewFollowersDetected(object sender, TwitchLib.Events.Services.FollowerService.OnNewFollowersDetectedArgs e) { Interlocked.Exchange(ref _CurrentFollowerCount, _CurrentFollowerCount + e.NewFollowers.Count); Logger.LogInformation($"New Followers on Twitch, new total: {_CurrentFollowerCount}"); Updated?.Invoke(this, new ServiceUpdatedEventArgs { ServiceName = Name, NewFollowers = _CurrentFollowerCount }); }
private static void onFollowersDetected(object sender, TwitchLib.Events.Services.FollowerService.OnNewFollowersDetectedArgs e) { MessageBox.Show($"New followers detected! Followers: {String.Join(",", e.NewFollowers)}"); }