mini update help ans add sync

This commit is contained in:
VALOU3336
2024-02-27 11:01:28 +01:00
parent da89e5bd2f
commit 16a446c9c1
12 changed files with 19 additions and 11 deletions
+4 -1
View File
@@ -52,6 +52,7 @@ module.exports = {
game: [],
gestion: [],
utils: [],
other: [],
};
let liste = [];
@@ -62,8 +63,10 @@ module.exports = {
}
}
for (const command of liste) {
if (command.category) {
if (command.category && categories[command.category]) {
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
} else {
categories['other'].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
}
}
let totalCommands = liste.length