Ejemplo n.º 1
0
        public static Task remind(Match m, CommandContext context)
        {
            DateTime time = ReminderUtils.parseTime(m.Groups[1].Value);

            if (time < DateTime.Now)
            {
                return(context.Channel.SendMessageAsync("_Buzz_ no time travel, nerd."));
            }

            int id = ReminderInstance.add_reminder(context, time, m.Groups[2].Value);

            return(context.Channel.SendMessageAsync($"#{id} coming in at {time.ToString("R")}"));
        }
Ejemplo n.º 2
0
 public static Task remindListUser(Match match, CommandContext context)
 => context.Channel.SendMessageAsync(embed: ReminderUtils.remindListEmbed(context.Invoker.Id));
Ejemplo n.º 3
0
 public static Task remindListAdmin(Match match, CommandContext context)
 => context.Channel.SendMessageAsync(embed: ReminderUtils.remindListEmbed(Convert.ToUInt64(match.Groups[1].Value)));