diff --git a/commands/events/days-until.js b/commands/events/days-until.js index 96bf2f32..943a3f38 100644 --- a/commands/events/days-until.js +++ b/commands/events/days-until.js @@ -33,7 +33,7 @@ module.exports = class DaysUntilCommand extends Command { const future = new Date(`${month}/${day}/${year}`); const futureFormat = moment.utc(future).format('dddd, MMMM Do, YYYY'); const time = moment.duration(future - now); - const link = time.months() === 1 ? 'is' : 'are'; + 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}!`); } }; diff --git a/package.json b/package.json index 7fdc4a29..e0a09a60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "91.8.10", + "version": "91.8.11", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {