private async void TakeAttendance(object sender, TimerAlertsEventArgs e) { ShowMessage(); //await GeneralChannel.SendMessageAsync("Klokken er nå 10:00. Jeg tar oppmøte"); var result = RegisterUsersAutomatic.Register(); var users = ""; result.Item2.ForEach(element => users += element.ToString() + "\n"); await BotChannel.SendMessageAsync($"Active users: \n " + users); result.Item2.ForEach(x => Console.WriteLine(MyServer.GetUser(x).Username)); await _client.GetUser(112955646701297664).SendFileAsync(result.Item1); }
private async void TakeAttendance(object sender, TimerAlertsEventArgs e) { ShowMessage(); if (StartDebugOn) { Console.Write("Taking attendance"); } var result = RegisterUsersAutomatic.Register(); var users = ""; result.Item2.ForEach(element => users += GetServer.GetUser(element).Username + "\n"); await BotChannel.SendMessageAsync($"Active users: \n " + users); result.Item2.ForEach(x => Console.WriteLine(GetServer.GetUser(x).Username)); await _client.GetUser(112955646701297664).SendFileAsync(result.Item1); }