mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Remove nsfw/useless commands, refactor stuff
This commit is contained in:
@@ -26,11 +26,13 @@ module.exports = class HelpCommand extends Command {
|
||||
if (!command) {
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle('Command List')
|
||||
.setDescription(`Use ${msg.usage('<command>')} to view detailed information about a command.`)
|
||||
.setColor(0x00AE86)
|
||||
.setFooter(`${this.client.registry.commands.size} Commands`);
|
||||
for (const group of this.client.registry.groups.values()) {
|
||||
embed.addField(`❯ ${group.name}`, group.commands.map(cmd => cmd.name).join(', ') || 'None');
|
||||
embed.addField(
|
||||
`❯ ${group.name}`,
|
||||
group.commands.map(cmd => `\`${cmd.name}\``).join(', ') || 'None'
|
||||
);
|
||||
}
|
||||
try {
|
||||
const msgs = [];
|
||||
|
||||
Reference in New Issue
Block a user