mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Add ownerOnly to README
This commit is contained in:
@@ -24,7 +24,9 @@ module.exports = class GenerateCommandsCommand extends Command {
|
||||
|
||||
async run(msg) {
|
||||
const list = this.client.registry.groups
|
||||
.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}${c.ownerOnly ? ' (Owner-Only)' : ''}`
|
||||
).join('\n')}`);
|
||||
const { body } = await request
|
||||
.post('https://hastebin.com/documents')
|
||||
.send(list.join('\n'));
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ module.exports = class IpCommand extends Command {
|
||||
name: 'ip',
|
||||
group: 'util',
|
||||
memberName: 'ip',
|
||||
description: 'Responds with the IP address Xiao\'s server is running on.',
|
||||
description: 'Responds with the IP address the bot\'s server is running on.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
guarded: true,
|
||||
ownerOnly: true,
|
||||
|
||||
Reference in New Issue
Block a user