diff --git a/backend/src/plugins/Reminders/commands/RemindCmd.ts b/backend/src/plugins/Reminders/commands/RemindCmd.ts index c4655771..f9718b0b 100644 --- a/backend/src/plugins/Reminders/commands/RemindCmd.ts +++ b/backend/src/plugins/Reminders/commands/RemindCmd.ts @@ -63,14 +63,11 @@ export const RemindCmd = remindersCmd({ const msUntilReminder = reminderTime.diff(now); const timeUntilReminder = humanizeDuration(msUntilReminder, { largest: 2, round: true }); - const prettyReminderTime = (await timeAndDate.inMemberTz(msg.author.id, reminderTime)).format( - pluginData.getPlugin(TimeAndDatePlugin).getDateFormat("pretty_datetime"), - ); sendSuccessMessage( pluginData, msg.channel, - `I will remind you in **${timeUntilReminder}** at **${prettyReminderTime}**`, + `I will remind you in **${timeUntilReminder}** at `, ); }, }); diff --git a/backend/src/plugins/Reminders/commands/RemindersCmd.ts b/backend/src/plugins/Reminders/commands/RemindersCmd.ts index ca61ceb8..bcb404dd 100644 --- a/backend/src/plugins/Reminders/commands/RemindersCmd.ts +++ b/backend/src/plugins/Reminders/commands/RemindersCmd.ts @@ -29,7 +29,12 @@ export const RemindersCmd = remindersCmd({ const prettyRemindAt = timeAndDate .inGuildTz(moment.utc(reminder.remind_at, DBDateFormat)) .format(timeAndDate.getDateFormat("pretty_datetime")); - return `\`${paddedNum}.\` \`${prettyRemindAt} (${result})\` ${reminder.body}`; + const remindIn = + diff > 0 + ? `in ${humanizeDuration(diff, { largest: 2, round: true })}` + : `${humanizeDuration(Math.abs(diff), { largest: 2, round: true })} ago`; + const timestamp = ``; + return `\`${paddedNum}.\` ${timestamp} (${remindIn}): ${reminder.body}`; }); createChunkedMessage(msg.channel, lines.join("\n"));