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

@ -11,12 +11,13 @@ module.exports = {
label: 'to',
metadata: {
description: 'Uses Optical Character Recognition to translate text in an image.',
description_short: 'Image Text Translation',
examples: ['ocrtr en'],
category: 'utils',
usage: 'ocrtr <language> [-from <origin language>]'
},
args: [
{name: 'from', default: 'auto'}
{name: 'from', default: 'auto', type: 'string', help: "Language to translate from"}
],
run: async (context, args) => {
context.triggerTyping();