Minor fixes

This commit is contained in:
baz 2024-02-16 17:50:58 +00:00
parent c1c63092ab
commit 4bdc193feb
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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()