mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
!reminders uses timestamps
This commit is contained in:
parent
d2aff3979e
commit
2595cfb173
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ export const RemindersCmd = remindersCmd({
|
||||||
const prettyRemindAt = timeAndDate
|
const prettyRemindAt = timeAndDate
|
||||||
.inGuildTz(moment.utc(reminder.remind_at, DBDateFormat))
|
.inGuildTz(moment.utc(reminder.remind_at, DBDateFormat))
|
||||||
.format(timeAndDate.getDateFormat("pretty_datetime"));
|
.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 = `<t:${target.unix()}:f>`;
|
||||||
|
return `\`${paddedNum}.\` ${timestamp} (${remindIn}): ${reminder.body}`;
|
||||||
});
|
});
|
||||||
|
|
||||||
createChunkedMessage(msg.channel, lines.join("\n"));
|
createChunkedMessage(msg.channel, lines.join("\n"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue