big help upgrades

- short descriptions for command list
  - argument descriptions
  - render argument list on detailed help page
This commit is contained in:
derpystuff 2022-12-06 10:26:34 +01:00
parent 5e5a738b74
commit f9c627ada1
55 changed files with 114 additions and 30 deletions

View file

@ -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 =>