Make years visible

This commit is contained in:
Dragon Fire
2021-01-09 10:46:15 -05:00
parent 89922059d2
commit 6c5e150b9b
+1 -1
View File
@@ -44,6 +44,6 @@ module.exports = class DaysUntilCommand extends Command {
const futureFormat = moment.utc(future).format('dddd, MMMM Do, YYYY');
const time = moment.duration(future - now);
const link = time.months() ? time.months() === 1 ? 'is' : 'are' : time.days() === 1 ? 'is' : 'are';
return msg.say(`There ${link} ${time.format('M [months and] d [days]')} until ${futureFormat}!`);
return msg.say(`There ${link} ${time.format('Y [years], M [months and] d [days]')} until ${futureFormat}!`);
}
};