mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Add ownerOnly to README
This commit is contained in:
@@ -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
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user