feature/hidden stats
This commit is contained in:
1 file changed
+2
@@ -46,6 +46,8 @@ module.exports = {
|
|||||||
.setColor(client.config.Colors.Default)
|
.setColor(client.config.Colors.Default)
|
||||||
.setTitle(`Server connection stats`);
|
.setTitle(`Server connection stats`);
|
||||||
|
|
||||||
|
stats.Embed.addFields({ name: 'All time Unique connections', value: `> ${stats.length}`, inline: false });
|
||||||
|
|
||||||
let month3 = new Date().setMonth(new Date().getMonth() - 3);
|
let month3 = new Date().setMonth(new Date().getMonth() - 3);
|
||||||
let month3Players = stats.filter((stat) => stat.lastConnectionDate > month3);
|
let month3Players = stats.filter((stat) => stat.lastConnectionDate > month3);
|
||||||
statsEmbed.addFields({ name: 'Unique connections in the last 3 months', value: `> ${month3Players.length}`, inline: false });
|
statsEmbed.addFields({ name: 'Unique connections in the last 3 months', value: `> ${month3Players.length}`, inline: false });
|
||||||
|
|||||||
Reference in new issue
Block a user