Minor fixes
This commit is contained in:
parent
c1c63092ab
commit
4bdc193feb
|
@ -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));
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue