aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-13 16:59:15 +0100
committerMinteck <contact@minteck.org>2022-02-13 16:59:15 +0100
commit30b148fa367d113b3a479b199ecabaecd4e963a7 (patch)
tree19ee9b846be81a91373b28670354923a572ae25d /commands
parent4868f3dd108a9dbdfb12a4067e036acca985b1ec (diff)
downloadponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.tar.gz
ponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.tar.bz2
ponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.zip
Fix \ otal\ showing in /info
Diffstat (limited to 'commands')
-rw-r--r--commands/info.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/info.js b/commands/info.js
index 403b70c..aaa4dc5 100644
--- a/commands/info.js
+++ b/commands/info.js
@@ -61,7 +61,7 @@ module.exports = async (interaction) => {
try { delete statsCommandsP["eval"]; } catch (e) {}
try {
- statsCommand = Object.keys(statsCommandsP).reduce((a, b) => statsCommandsP[a] > statsCommandsP[b] ? a : b);
+ statsCommand = Object.keys(statsCommandsP).filter(i => i !== "_total").reduce((a, b) => statsCommandsP[a] > statsCommandsP[b] ? a : b);
statsCommandUsage = statsCommandsP[Object.keys(statsCommandsP).reduce((a, b) => statsCommandsP[a] > statsCommandsP[b] ? a : b)].toString();
} catch (e) {
console.error(e);