diff --git a/commands/random/days-until.js b/commands/random/days-until.js index aad6d1e3..9edf8882 100644 --- a/commands/random/days-until.js +++ b/commands/random/days-until.js @@ -22,7 +22,7 @@ module.exports = class DaysUntilCommand extends Command { run(msg, { date }) { const month = parseInt(date[0], 10); - const day = parseInt(date[1], 10); + const day = date[1] ? parseInt(date[1], 10) : NaN; const now = new Date(); let year = now.getMonth() + 1 <= month ? now.getFullYear() : now.getFullYear() + 1; if (month === now.getMonth() + 1 && now.getDate() >= day) ++year;