mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
big help upgrades
- short descriptions for command list - argument descriptions - render argument list on detailed help page
This commit is contained in:
parent
5e5a738b74
commit
f9c627ada1
55 changed files with 114 additions and 30 deletions
|
@ -9,14 +9,15 @@ module.exports = {
|
|||
name: "dev",
|
||||
metadata: {
|
||||
description: 'Evaluate code.',
|
||||
description_short: 'Bot eval',
|
||||
examples: ['dev console.log(\'ping\'); -async false'],
|
||||
category: 'dev',
|
||||
usage: 'eval <code> [-async <true|false>] [-noreply <true|false>] [-jsonspacing <integer>]'
|
||||
},
|
||||
args: [
|
||||
{ default: false, name: "noreply", type: "bool" },
|
||||
{ default: 2, name: "jsonspacing", type: "number" },
|
||||
{ default: true, name: "async", type: "bool" }
|
||||
{ default: false, name: "noreply", type: "bool", help: "Reply with evaluated output" },
|
||||
{ default: 2, name: "jsonspacing", type: "number", help: "Spacing for formatted json" },
|
||||
{ default: true, name: "async", type: "bool", help: "Async evaluation" }
|
||||
],
|
||||
onBefore: context => context.user.isClientOwner,
|
||||
onCancel: context =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue