diff --git a/commands/100-games/estimatedfinishdate.js b/commands/100-games/estimatedfinishdate.js index 918062d..36a5233 100644 --- a/commands/100-games/estimatedfinishdate.js +++ b/commands/100-games/estimatedfinishdate.js @@ -26,8 +26,8 @@ module.exports = { desc = `${user.displayName} has not beaten any games yet.`; } else { const today = new Date(); - const start = new Date(2024, 1, 1); - const days = (today - start) / (1000 * 3600 * 24); + const start = new Date(2024, 0, 1); + const days = (today - start) / (1000 * 60 * 60 * 24); const timepergame = days / beatenGamesDatabaseEntries.length; const finishdate = new Date(); finishdate.setDate(start.getDate() + (timepergame * 100)); diff --git a/commands/100-games/globalbeatlist.js b/commands/100-games/globalbeatlist.js index 2f1065e..18faa77 100644 --- a/commands/100-games/globalbeatlist.js +++ b/commands/100-games/globalbeatlist.js @@ -1,6 +1,6 @@ const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const { getAllBeatenGames, checkGameStorageId, getUserFromId } = require('../../databaseHelperFunctions.js'); -const { getGameJson } = require('../../igdbHelperFunctions.js'); + module.exports = { data: new SlashCommandBuilder()