diff options
author | Minteck <contact@minteck.org> | 2022-02-13 16:59:15 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-02-13 16:59:15 +0100 |
commit | 30b148fa367d113b3a479b199ecabaecd4e963a7 (patch) | |
tree | 19ee9b846be81a91373b28670354923a572ae25d /commands | |
parent | 4868f3dd108a9dbdfb12a4067e036acca985b1ec (diff) | |
download | ponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.tar.gz ponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.tar.bz2 ponyfind-30b148fa367d113b3a479b199ecabaecd4e963a7.zip |
Fix \ otal\ showing in /info
Diffstat (limited to 'commands')
-rw-r--r-- | commands/info.js | 2 |
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); |