public void Get_My_Reminders_Check() { File.Delete(Constants.remindMePath); var time = setUpUser(); string answer2 = RemindMeController.GetMyReminders(userId); Assert.AreEqual($"1, {userId}, {time}, {note} \r\n", answer2); File.Delete(Constants.remindMePath); }
public async Task GetMyReminders() { //Gets your discord user id var msg = Context.Message; var discordId = msg.Author.Username; // Search the db for current reminders (active) string currentReminders = RemindMeController.GetMyReminders(discordId); if (currentReminders == "") { await ReplyAsync("There are no active reminders!"); } else { await ReplyAsync(currentReminders); } }