This commit is contained in:
Dragon Fire
2020-03-21 17:52:06 -04:00
parent 8ca7a6ffc8
commit e26e14f378
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ module.exports = class GenerateCommandsCommand extends Command {
.map(g => `\n### ${g.name}:\n\n${g.commands.filter(c => !c.hidden).map(
c => `* **${c.name}:** ${c.description}${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}`
).join('\n')}`);
return msg.channel.send({ files: [{ attachment: Buffer.from(list), name: 'commands.txt' }] });
const text = `Total: ${this.client.registry.commands.size}\n${list.join('\n')}`;
return msg.channel.send({ files: [{ attachment: Buffer.from(text), name: 'commands.txt' }] });
}
};
+1 -1
View File
@@ -48,6 +48,6 @@ module.exports = class GenerateCreditCommand extends Command {
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
return ` * ${cmd.name} ([${cmd.reason}](${cmd.reasonURL}))`;
}).join('\n')}`);
return msg.channel.send({ files: [{ attachment: Buffer.from(mapped), name: 'credit.txt' }] });
return msg.channel.send({ files: [{ attachment: Buffer.from(mapped.join('\n')), name: 'credit.txt' }] });
}
};