This commit is contained in:
Dragon Fire
2020-01-12 21:23:05 -05:00
parent 1559d2b332
commit 886d6c6dfa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class GenerateCommandsCommand extends Command {
}
async run(msg) {
const list = client.registry.groups
const list = this.client.registry.groups
.filter(g => g.id !== 'owner')
.map(g => `\n### ${g.name}:\n\n${g.commands.map(c => `* **${c.name}:** ${c.description}`).join('\n')}`);
const { body } = await request
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class GenerateCreditCommand extends Command {
async run(msg) {
const credit = [];
const commands = client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1);
const commands = this.client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1);
for (const command of commands) {
for (const credit of command.credit) {
const found = credit.find(c => c.name === credit.name);