mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix a few mistakes
This commit is contained in:
@@ -16,9 +16,10 @@ module.exports = class TimeCommand extends Command {
|
|||||||
details: '**Zones:** <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>',
|
details: '**Zones:** <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>',
|
||||||
credit: [
|
credit: [
|
||||||
{
|
{
|
||||||
name: 'List of tz database time zones',
|
name: 'Wikipedia',
|
||||||
url: 'https://en.wikipedia.org/wiki/List_of_tz_database_time_zones',
|
url: 'https://www.wikipedia.org/',
|
||||||
reason: 'Time Zone Data'
|
reason: 'Time Zone Data',
|
||||||
|
reasonURL: 'https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Neopets',
|
name: 'Neopets',
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ module.exports = class BeautifulCommand extends Command {
|
|||||||
{
|
{
|
||||||
name: 'Disney',
|
name: 'Disney',
|
||||||
url: 'https://www.disney.com/',
|
url: 'https://www.disney.com/',
|
||||||
reason: 'Original "Gravity Falls" Show'
|
reason: 'Original "Gravity Falls" Show',
|
||||||
|
reasonURL: 'https://disneynow.com/shows/gravity-falls'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Tatsumaki',
|
name: 'Tatsumaki',
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ module.exports = class WorthlessCommand extends Command {
|
|||||||
{
|
{
|
||||||
name: 'Disney',
|
name: 'Disney',
|
||||||
url: 'https://www.disney.com/',
|
url: 'https://www.disney.com/',
|
||||||
reason: 'Original "Gravity Falls" Show'
|
reason: 'Original "Gravity Falls" Show',
|
||||||
|
reasonURL: 'https://disneynow.com/shows/gravity-falls'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const credit = [];
|
let credit = [];
|
||||||
const commands = this.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.values()) {
|
for (const command of commands.values()) {
|
||||||
for (const cred of command.credit) {
|
for (const cred of command.credit) {
|
||||||
@@ -47,6 +47,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
credit = credit.sort((a, b) => (a.name > b.name) ? 1 : -1);
|
||||||
const mapped = credit
|
const mapped = credit
|
||||||
.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => {
|
.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => {
|
||||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||||
|
|||||||
@@ -20,8 +20,9 @@ module.exports = class ItunesCommand extends Command {
|
|||||||
reasonURL: 'https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/'
|
reasonURL: 'https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'List of ISO 639-2 codes',
|
name: 'Wikipedia',
|
||||||
url: 'https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes',
|
url: 'https://www.wikipedia.org/',
|
||||||
|
reasonURL: 'https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes',
|
||||||
reason: 'Language Code Data'
|
reason: 'Language Code Data'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user