mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "110.9.6",
|
||||
"version": "110.9.7",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user