Last used command

akairo
loicbersier 4 years ago
parent 2a69e45284
commit e956ac6d2f

@ -94,6 +94,7 @@ class commandStartedListener extends Listener {
.setTitle('Daily usage report!') .setTitle('Daily usage report!')
.addField('Number of unique guild', uniqueGuild.length) .addField('Number of unique guild', uniqueGuild.length)
.addField('Number of command executed', executedCommands, true) .addField('Number of command executed', executedCommands, true)
.addField('Last used command', command.id, true)
.addField('Most used command', `${getKeyByValue(commands, max)} (${max} times)`, true ) .addField('Most used command', `${getKeyByValue(commands, max)} (${max} times)`, true )
.addField('Least used command', `${getKeyByValue(commands, min)} (${min} times)`, true) .addField('Least used command', `${getKeyByValue(commands, min)} (${min} times)`, true)
.setFooter(`Bot usage as of ${today}`); .setFooter(`Bot usage as of ${today}`);

Loading…
Cancel
Save