Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }