mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
upgrade help
This commit is contained in:
@@ -41,14 +41,13 @@ module.exports = {
|
|||||||
utils: [],
|
utils: [],
|
||||||
other: [],
|
other: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const command of client.commands.values()) {
|
for (const command of client.commands.values()) {
|
||||||
if (command.category) {
|
if (command.category) {
|
||||||
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
|
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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\n';
|
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)) {
|
for (const [category, commands] of Object.entries(categories)) {
|
||||||
description += `**Catégorie ${category}**\n`;
|
description += `**Catégorie ${category}**\n`;
|
||||||
|
|||||||
Reference in New Issue
Block a user