From d7531d9f1671abfa5bc13d05ba5caa9ab4550b4d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 12 Jan 2020 21:24:47 -0500 Subject: [PATCH] Fix --- commands/owner/generate-credit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/owner/generate-credit.js b/commands/owner/generate-credit.js index 1cca25c9..872df141 100644 --- a/commands/owner/generate-credit.js +++ b/commands/owner/generate-credit.js @@ -18,14 +18,14 @@ module.exports = class GenerateCreditCommand extends Command { const credit = []; const commands = this.client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1); for (const command of commands.values()) { - for (const credit of command.credit) { - const found = credit.find(c => c.name === credit.name); + for (const cred of command.credit) { + const found = credit.find(c => c.name === cred.name); if (found) { found.commands.push(command.name); continue; }; - if (credit.name === 'Dragon Fire') continue; - credit.push({ ...credit, commands: [command.name] }); + if (cred.name === 'Dragon Fire') continue; + credit.push({ ...cred, commands: [command.name] }); } } const mapped = credit.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => ` * ${cmd}`).join('\n')}`);