From 416cb5d4707b78aa7918e97f8de164038f6e5b24 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 26 Oct 2020 12:22:15 -0400 Subject: [PATCH] Fix --- commands/events/year-progress.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/events/year-progress.js b/commands/events/year-progress.js index 577e7e03..b01a8ae7 100644 --- a/commands/events/year-progress.js +++ b/commands/events/year-progress.js @@ -12,10 +12,10 @@ module.exports = class YearProgressCommand extends Command { } run(msg) { - const today = new Date(); - const start = new Date(today.getFullYear(), 0, 1); - const end = new Date(today.getFullYear() + 1, 0, 1); - const percent = (Math.abs(today - start) / Math.abs(end - start)) * 100; - return msg.say(`The year ${now.getFullYear()} is **${percent}%** complete!`); + const today = new Date(); + const start = new Date(today.getFullYear(), 0, 1); + const end = new Date(today.getFullYear() + 1, 0, 1); + const percent = (Math.abs(today - start) / Math.abs(end - start)) * 100; + return msg.say(`The year ${now.getFullYear()} is **${percent}%** complete!`); } };