add game command

This commit is contained in:
Tutur33
2024-02-26 11:20:08 +01:00
parent a9d92fbff6
commit 7ee772a6b9
23 changed files with 229 additions and 160 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = {
let categories: { [key: string]: Command[] } = {};
commands.forEach((command: any) => {
if (!categories[command.category]) {
categories[command.category] = [{ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation}];
categories[command.category] = [];
}
categories[command.category]?.push(command);
});