diff options
-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); |