Fix currency, add reason URL to credit

This commit is contained in:
Dragon Fire
2024-04-25 00:30:29 -04:00
parent 522df30575
commit 0a0cc4c621
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -25,9 +25,10 @@ module.exports = class GenerateCreditCommand extends Command {
.sort((a, b) => a.name.localeCompare(b.name));
if (!commands.size) return null;
return commands.map(c => {
const reason = cred.reasonURL ? `[${cred.reason}](${cred.reasonURL})` : cred.reason;
const credits = c.credit
.filter(cred => cred.name !== 'Dragon Fire')
.map(cred => `[${cred.name}](${cred.url}) (${cred.reason})`);
.map(cred => `[${cred.name}](${cred.url}) (${reason})`);
return `* **${c.name}:**\n - ${credits.join('\n - ')}`;
}).join('\n');
})