Add ownerOnly to README

This commit is contained in:
Dragon Fire
2020-02-28 13:40:05 -05:00
parent 5b9a506377
commit 673408cd3e
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ module.exports = class GenerateCommandsCommand extends Command {
async run(msg) { async run(msg) {
const list = this.client.registry.groups 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 const { body } = await request
.post('https://hastebin.com/documents') .post('https://hastebin.com/documents')
.send(list.join('\n')); .send(list.join('\n'));
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = class IpCommand extends Command {
name: 'ip', name: 'ip',
group: 'util', group: 'util',
memberName: 'ip', 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.', details: 'Only the bot owner(s) may use this command.',
guarded: true, guarded: true,
ownerOnly: true, ownerOnly: true,
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "110.9.6", "version": "110.9.7",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {