From 673408cd3e905f435c4e034043e18bf3c4765c66 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 28 Feb 2020 13:40:05 -0500 Subject: [PATCH] Add ownerOnly to README --- commands/readme/generate-commands.js | 4 +++- commands/util/ip.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/readme/generate-commands.js b/commands/readme/generate-commands.js index ee777455..37e908b6 100644 --- a/commands/readme/generate-commands.js +++ b/commands/readme/generate-commands.js @@ -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')); diff --git a/commands/util/ip.js b/commands/util/ip.js index a5251d48..be07029e 100644 --- a/commands/util/ip.js +++ b/commands/util/ip.js @@ -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, diff --git a/package.json b/package.json index 4a906094..e52e3200 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.9.6", + "version": "110.9.7", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {