Beispiel #1
0
        private void GetChatters()
        {
            Log.LogInfo("Retreiving chatters");
            var    chattersFromApi = TwitchApi.ChattersInChannel(_channel);
            double totalToProcess  = chattersFromApi.chatters.moderators.Count + chattersFromApi.chatters.viewers.Count;

            Log.LogInfo("Retreived chatters " + totalToProcess);

            foreach (var chatter in chattersFromApi.chatters.moderators)
            {
                DataStore.AddUser(chatter);
            }

            foreach (var chatter in chattersFromApi.chatters.viewers)
            {
                DataStore.AddUser(chatter);
            }
        }