DBL is total garbage

This commit is contained in:
Dragon Fire
2020-04-28 09:07:54 -04:00
parent b2f86615c8
commit 1817c6e990
10 changed files with 7 additions and 34 deletions
+3 -11
View File
@@ -10,22 +10,14 @@ module.exports = class GenerateCommandsCommand extends Command {
description: 'Generates the commands list for Xiao\'s README.',
details: 'Only the bot owner(s) may use this command.',
ownerOnly: true,
guarded: true,
args: [
{
key: 'botList',
prompt: 'Do you want to generate the bot list version of the command list?',
type: 'boolean',
default: false
}
]
guarded: true
});
}
run(msg, { botList }) {
run(msg) {
const list = this.client.registry.groups
.map(g => {
const commands = g.commands.filter(c => !c.hidden && (botList ? !c.ownerOnly && !c.nsfw : true));
const commands = g.commands.filter(c => !c.hidden);
return `\n### ${g.name}:\n\n${commands.map(c => {
const extra = `${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}`;
return `* **${c.name}:** ${c.description}${extra}`;