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 days = (today - start) / (1000 * 60 * 60 * 24);
|
||||
const timepergame = days / beatenGamesDatabaseEntries.length;
|
||||
embed.addFields({ name: 'Average Beat Interval', value: `${Math.round(timepergame)} days`, inline: true });
|
||||
const finishdate = new Date();
|
||||
finishdate.setDate(start.getDate() + (timepergame * 100));
|
||||
const date = finishdate.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/');
|
||||
start.setDate(start.getDate() + (timepergame * 100));
|
||||
const date = start.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/');
|
||||
embed.addFields({ name: 'Estimated Finish Date', value: `${date}`, inline: true });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user