static ParticipantsStats() { hpgDocParser = new HpgDocParser(); hltbParser = new HltbParser(); ParticipantDictionary = new Dictionary <string, ParticipantInfo> { { "bjorn", new ParticipantInfo { Name = "UncleBjorn" } }, { "useless", new ParticipantInfo { Name = "UselessMouth" } }, { "lizon", new ParticipantInfo { Name = "liz0n" } }, { "mel", new ParticipantInfo { Name = "Melharucos" } }, { "faker", new ParticipantInfo { Name = "Mistafaker" } }, { "lasqa", new ParticipantInfo { Name = "Lasqa" } } }; for (int i = 0; i < ParticipantDictionary.Count; i++) { UpdateParticipantInfo(ParticipantDictionary.ElementAt(i).Key); } ThreadPool.QueueUserWorkItem(o => { UpdateLeaderboard(); }); }
private void InitializeVariables() { hltbParser = new HltbParser(); gamefaqParser = new GamefaqParser(); coronaParser = new CoronavirusParser(); messages = new Dictionary <string, int>(); anfisa = new Anfisa(); random = new Random(); bannedUsers = new List <string>(); items = HpgItems.Items; }