mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix text
This commit is contained in:
@@ -19,6 +19,7 @@ module.exports = class GenerateCommandsCommand extends Command {
|
|||||||
.map(g => `\n### ${g.name}:\n\n${g.commands.filter(c => !c.hidden).map(
|
.map(g => `\n### ${g.name}:\n\n${g.commands.filter(c => !c.hidden).map(
|
||||||
c => `* **${c.name}:** ${c.description}${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}`
|
c => `* **${c.name}:** ${c.description}${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}`
|
||||||
).join('\n')}`);
|
).join('\n')}`);
|
||||||
return msg.channel.send({ files: [{ attachment: Buffer.from(list), name: 'commands.txt' }] });
|
const text = `Total: ${this.client.registry.commands.size}\n${list.join('\n')}`;
|
||||||
|
return msg.channel.send({ files: [{ attachment: Buffer.from(text), name: 'commands.txt' }] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -48,6 +48,6 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||||
return ` * ${cmd.name} ([${cmd.reason}](${cmd.reasonURL}))`;
|
return ` * ${cmd.name} ([${cmd.reason}](${cmd.reasonURL}))`;
|
||||||
}).join('\n')}`);
|
}).join('\n')}`);
|
||||||
return msg.channel.send({ files: [{ attachment: Buffer.from(mapped), name: 'credit.txt' }] });
|
return msg.channel.send({ files: [{ attachment: Buffer.from(mapped.join('\n')), name: 'credit.txt' }] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user