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

@ -8,10 +8,16 @@ module.exports = {
label: 'text',
metadata: {
description: 'test',
description_short: 'Bot test',
examples: ['test'],
category: 'dev',
usage: 'test'
},
args: [
{ default: false, name: "noreply", type: "bool", help: "Should this command return the output?" },
{ default: 2, name: "jsonspacing", type: "number", help: "JSON spacing sizes" },
{ default: true, name: "async", type: "bool", help: "Compute async?" }
],
run: async (context, args) => {
if(context.user.id !== "223518178100248576") return;
let image = await getRecentImage(context, 50)

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

View file

@ -5,6 +5,7 @@ module.exports = {
aliases: ["rl"],
metadata: {
description: 'Reloads commands on all shards.',
description_short: 'Bot reload',
examples: ['reload'],
category: 'dev',
usage: 'reload'

View file

@ -8,12 +8,13 @@ module.exports = {
name: "update",
metadata: {
description: 'Fetches latest bot version.',
description_short: 'Bot update',
examples: ['update'],
category: 'dev',
usage: 'update [-force true]'
},
args: [
{ default: false, name: "force", type: "bool" }
{ default: false, name: "force", type: "bool", help: "Force update" }
],
onBefore: context => context.user.isClientOwner,
onCancel: context =>

View file

@ -16,6 +16,7 @@ module.exports = {
name: "uptime",
metadata: {
description: 'Displays the bots uptime.',
description_short: 'Bot uptime',
examples: ['uptime'],
category: 'dev',
usage: 'uptime'