3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21:51 +00:00

!remind uses time stamps

This commit is contained in:
srqc 2023-04-01 19:33:10 -04:00 committed by GitHub
parent c3e07c1607
commit d2aff3979e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,14 +63,11 @@ export const RemindCmd = remindersCmd({
const msUntilReminder = reminderTime.diff(now); const msUntilReminder = reminderTime.diff(now);
const timeUntilReminder = humanizeDuration(msUntilReminder, { largest: 2, round: true }); 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( sendSuccessMessage(
pluginData, pluginData,
msg.channel, msg.channel,
`I will remind you in **${timeUntilReminder}** at **${prettyReminderTime}**`, `I will remind you in **${timeUntilReminder}** at <t:${reminderTime.unix()}:f>`,
); );
}, },
}); });