Update user
This commit is contained in:
parent
dc820b934f
commit
b1df3297a9
@ -42,10 +42,8 @@ module.exports = {
|
|||||||
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 / beatenGamesDatabaseEntries.length;
|
const timepergame = days / beatenGamesDatabaseEntries.length;
|
||||||
embed.addFields({ name: 'Average Beat Interval', value: `${Math.round(timepergame)} days`, inline: true });
|
start.setDate(start.getDate() + (timepergame * 100));
|
||||||
const finishdate = new Date();
|
const date = start.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/');
|
||||||
finishdate.setDate(start.getDate() + (timepergame * 100));
|
|
||||||
const date = finishdate.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/');
|
|
||||||
embed.addFields({ name: 'Estimated Finish Date', value: `${date}`, inline: true });
|
embed.addFields({ name: 'Estimated Finish Date', value: `${date}`, inline: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user