This commit is contained in:
Dragon Fire
2020-10-26 12:24:04 -04:00
parent 416cb5d470
commit 9cd4ebef38
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = class YearProgressCommand extends Command {
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!`);
return msg.say(`The year ${today.getFullYear()} is **${percent}%** complete!`);
}
};