From d77df69768f13b507a07a880f5b1d5059d54143d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Apr 2024 17:17:07 -0400 Subject: [PATCH] Fix --- commands/events/florida-man.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/commands/events/florida-man.js b/commands/events/florida-man.js index edc09587..fc316530 100644 --- a/commands/events/florida-man.js +++ b/commands/events/florida-man.js @@ -25,12 +25,12 @@ module.exports = class FloridaManCommand extends Command { { key: 'month', type: 'month', - default: '' + default: new Date().getMonth() + 1 }, { key: 'day', type: 'integer', - default: '', + default: new Date().getDate(), min: 1, max: 31 } @@ -39,8 +39,7 @@ module.exports = class FloridaManCommand extends Command { } async run(msg, { month, day }) { - const today = new Date(); - const article = await this.fetchArticle(month || today.getMonth() + 1, day || today.getDate()); + const article = await this.fetchArticle(month, day); if (!article) return msg.say('Could not find any results.'); return msg.say(stripIndents` **${article.title}**