mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 02:33:18 +00:00
Update Help command
This commit is contained in:
parent
c0d0cf23dc
commit
d1632f4f49
@ -13,15 +13,6 @@ export default {
|
|||||||
ephemeral: true
|
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()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(client.messages.replace(client.messages.helpTitle, {
|
.setTitle(client.messages.replace(client.messages.helpTitle, {
|
||||||
"%client.user.username%": client.user.username
|
"%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, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messages.emojis["logo"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
.setDescription(client.messages.replace(client.messages.helpDescription, {
|
.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')
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
||||||
.setFooter({
|
.setFooter({
|
||||||
|
@ -16,10 +16,8 @@ export const messages = {
|
|||||||
notPlaying: "There is nothing playing!",
|
notPlaying: "There is nothing playing!",
|
||||||
runningCommandFailed: "Running this command failed!",
|
runningCommandFailed: "Running this command failed!",
|
||||||
noPermsEmbed: "I cannot send embeds (Embed links).",
|
noPermsEmbed: "I cannot send embeds (Embed links).",
|
||||||
bugTitle: "Found a bug with %client.user.username%?",
|
helpTitle: "%client.user.username% - Help",
|
||||||
bugDescription: "Join the support server" + "\n" + "%client.config.supportGuild%",
|
helpDescription: "Join to our support server" + "\n" + "%client.config.supportGuild%",
|
||||||
helpTitle: "%client.user.username% help:",
|
|
||||||
helpDescription: "%commands%",
|
|
||||||
inviteTitle: "Invite %client.user.username% to your Discord server!",
|
inviteTitle: "Invite %client.user.username% to your Discord server!",
|
||||||
listTitle: "Radio Stations",
|
listTitle: "Radio Stations",
|
||||||
playTitle1: ":radio: Channel",
|
playTitle1: ":radio: Channel",
|
||||||
|
Loading…
Reference in New Issue
Block a user