public async Task UpdateVACStatus() { var totalCount = 0; List <Account> accs = new List <Account>(); try { accs = _accRepo.GetNonbannedAccounts(GetServerId()); if (accs.Count() > 0) { totalCount = accs.Count(); accs = _steamRepo.checkAccounts(accs).Where(acc => acc.VACBanned == true).ToList(); } } catch (Exception e) { await ReplyAsync($"Error: {e.Message}"); return; } // If no tracked accounts are currently not banned if (totalCount == 0) { await ReplyAsync("All currently tracked accounts are banned! :-)"); return; } _accRepo.UpdateAccounts(accs); await ReplyAsync($"Out of {totalCount} tracked, non-banned account(s), {accs.Count()} account(s) has now been banned!"); printAccounts(accs, "Newly banned accounts: "); }