예제 #1
0
        private async Task <string> FormatReminderStringAsync(UserReminder reminder)
        {
            var reminderStringBuilder = new StringBuilder();
            var executesIn            = reminder.TriggerAt - DateTimeOffset.Now;

            // todo this is a really bad and lazy system
            reminderStringBuilder.AppendLine($"{Markdown.Bold("Id")}: {reminder.Id[..4]}");
예제 #2
0
        public async Task CreateReminderAsync([Remainder] UserReminder reminder)
        {
            await ReminderService.CreateReminderAsync(reminder);

            await ReplyAsync(REMINDER_CREATED);
        }