Overhaul how credit works, change lots of images

This commit is contained in:
Dragon Fire
2020-01-14 18:25:35 -05:00
parent ea645d09f6
commit 0bb0550cc2
222 changed files with 928 additions and 361 deletions
+4 -2
View File
@@ -15,8 +15,10 @@ module.exports = class ChangelogCommand extends Command {
guarded: true,
credit: [
{
name: 'GitHub API',
url: 'https://developer.github.com/v3/'
name: 'GitHub',
url: 'https://github.com/',
reason: 'API',
reasonURL: 'https://developer.github.com/v3/'
}
]
});
+4 -1
View File
@@ -24,7 +24,10 @@ module.exports = class CreditCommand extends Command {
const embed = new MessageEmbed()
.setTitle(command.name)
.setColor(0x7289DA)
.setDescription(command.credit.map(credit => `[${credit.name}](${credit.url})`).join('\n'));
.setDescription(command.credit.map(credit => {
if (!credit.reasonURL) return `[${credit.name}](${credit.url}) (${credit.reason})`;
return `[${credit.name}](${credit.url}) ([${credit.reason}](${credit.reasonURL}))`;
}).join('\n'));
return msg.embed(embed);
}
};
+2 -1
View File
@@ -13,7 +13,8 @@ module.exports = class DonateCommand extends Command {
credit: [
{
name: 'PayPal',
url: 'https://www.paypal.com/us/home'
url: 'https://www.paypal.com/us/home',
reason: 'Donation Gathering'
}
]
});
-1
View File
@@ -29,7 +29,6 @@ module.exports = class HelpCommand extends Command {
.setColor(0x00AE86)
.setFooter(`${this.client.registry.commands.size} Commands`);
for (const group of this.client.registry.groups.values()) {
if (group.id === 'owner') continue;
embed.addField(
` ${group.name}`,
group.commands.map(cmd => `\`${cmd.name}\``).join(', ') || 'None'