Minor changes

This commit is contained in:
baz 2024-12-02 01:07:50 +00:00
parent c1be21b9a4
commit e87d40db1f
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ module.exports = {
const currentLeaderboardPlace = await GetLeaderboardPosition(userDatabaseEntry); const currentLeaderboardPlace = await GetLeaderboardPosition(userDatabaseEntry);
const embed = new EmbedBuilder(); const embed = new EmbedBuilder();
embed.setColor(0xD36918); embed.setColor(0x3BA55C);
embed.setTitle('The 100 Games Challenge: 2024 Wrapped'); embed.setTitle('The 100 Games Challenge: 2024 Wrapped');
embed.setDescription(`Here are the stats for the games you played for the 100 Games Challenge in 2024 ${user.displayName}`); embed.setDescription(`Here are the stats for the games you played for the 100 Games Challenge in 2024 ${user.displayName}`);
embed.setThumbnail(user.avatarURL()); embed.setThumbnail(user.avatarURL());
@ -127,7 +127,7 @@ async function GetNumberOfGamesBeat() {
async function GetAverageBeatInterval() { async function GetAverageBeatInterval() {
if (userBeatenGamesDatabaseEntries && userBeatenGamesDatabaseEntries.length > 0) { if (userBeatenGamesDatabaseEntries && userBeatenGamesDatabaseEntries.length > 0) {
const today = new Date(); const today = new Date(2025, 0, 1);
const start = new Date(2024, 0, 1); const start = new Date(2024, 0, 1);
const days = (today - start) / (1000 * 60 * 60 * 24); const days = (today - start) / (1000 * 60 * 60 * 24);
const timepergame = days / userBeatenGamesDatabaseEntries.length; const timepergame = days / userBeatenGamesDatabaseEntries.length;