mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Fix
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = class GenerateCommandsCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const list = client.registry.groups
|
const list = this.client.registry.groups
|
||||||
.filter(g => g.id !== 'owner')
|
.filter(g => g.id !== 'owner')
|
||||||
.map(g => `\n### ${g.name}:\n\n${g.commands.map(c => `* **${c.name}:** ${c.description}`).join('\n')}`);
|
.map(g => `\n### ${g.name}:\n\n${g.commands.map(c => `* **${c.name}:** ${c.description}`).join('\n')}`);
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const credit = [];
|
const credit = [];
|
||||||
const commands = 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) {
|
for (const command of commands) {
|
||||||
for (const credit of command.credit) {
|
for (const credit of command.credit) {
|
||||||
const found = credit.find(c => c.name === credit.name);
|
const found = credit.find(c => c.name === credit.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user