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")}")); }
public static Task remindListUser(Match match, CommandContext context) => context.Channel.SendMessageAsync(embed: ReminderUtils.remindListEmbed(context.Invoker.Id));
public static Task remindListAdmin(Match match, CommandContext context) => context.Channel.SendMessageAsync(embed: ReminderUtils.remindListEmbed(Convert.ToUInt64(match.Groups[1].Value)));