mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Overhaul how credit works, change lots of images
This commit is contained in:
@@ -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/'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user