From d1632f4f49d3df4ba5e019782378a66a5f7b65e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 4 Dec 2023 22:26:07 +0200 Subject: [PATCH] Update Help command --- src/client/commands/help.ts | 11 +---------- src/client/messages.ts | 6 ++---- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/client/commands/help.ts b/src/client/commands/help.ts index b81ba1b..28dca63 100644 --- a/src/client/commands/help.ts +++ b/src/client/commands/help.ts @@ -13,15 +13,6 @@ export default { ephemeral: true }); - const categories: string[] = []; - for (let i = 0; i < client.commands.size; i++) { - if (!categories.includes([...client.commands.values()][i].category)) categories.push([...client.commands.values()][i].category); - } - let commands = ''; - for (let i = 0; i < categories.length; i++) { - commands += `**ยป ${categories[i].toUpperCase()}**\n${client.commands.filter(x => x.category === categories[i]).map((x: command) => `\`${x.name}\``).join(', ')}\n`; - } - const embed = new EmbedBuilder() .setTitle(client.messages.replace(client.messages.helpTitle, { "%client.user.username%": client.user.username @@ -29,7 +20,7 @@ export default { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messages.emojis["logo"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(client.messages.replace(client.messages.helpDescription, { - "%commands%": commands + "%client.config.supportGuild%": client.config.supportGuild })) .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter({ diff --git a/src/client/messages.ts b/src/client/messages.ts index 440db1d..703b08f 100644 --- a/src/client/messages.ts +++ b/src/client/messages.ts @@ -16,10 +16,8 @@ export const messages = { notPlaying: "There is nothing playing!", runningCommandFailed: "Running this command failed!", noPermsEmbed: "I cannot send embeds (Embed links).", - bugTitle: "Found a bug with %client.user.username%?", - bugDescription: "Join the support server" + "\n" + "%client.config.supportGuild%", - helpTitle: "%client.user.username% help:", - helpDescription: "%commands%", + helpTitle: "%client.user.username% - Help", + helpDescription: "Join to our support server" + "\n" + "%client.config.supportGuild%", inviteTitle: "Invite %client.user.username% to your Discord server!", listTitle: "Radio Stations", playTitle1: ":radio: Channel",