From e8f6625710e088084a95ee8abe2804ab9b2bbdfd Mon Sep 17 00:00:00 2001 From: VALOU3336 Date: Thu, 15 Feb 2024 21:12:43 +0100 Subject: [PATCH] upgrade help --- commands/utils/help.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/utils/help.js b/commands/utils/help.js index 3833e91..d5bf6d3 100644 --- a/commands/utils/help.js +++ b/commands/utils/help.js @@ -41,14 +41,13 @@ module.exports = { utils: [], other: [], }; - for (const command of client.commands.values()) { if (command.category) { categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation}); } } - - let description = 'Sélectionnez une catégorie parmi les options ci-dessous pour obtenir de l\'aide sur les commandes correspondantes.\n\n'; + let totalCommands = client.commands.size; + let description = `Sélectionnez une catégorie parmi les options ci-dessous pour obtenir de l'aide sur les commandes correspondantes.\n Il y a ${totalCommands} commandes disponibles\n\n`; for (const [category, commands] of Object.entries(categories)) { description += `**Catégorie ${category}**\n`;