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

@ -13,13 +13,14 @@ module.exports = {
aliases: ['tr'],
metadata: {
description: 'Translates text. Supports automatic source language detection.',
description_short: 'Translates text',
examples: ['tr groß nussig -from de -to en'],
category: 'utils',
usage: `tr <text> [-to <target language>] [-from <origin language>]`
},
args: [
{name: 'to', default: 'en'},
{name: 'from', default: 'auto'}
{name: 'to', default: 'en', type: 'language', help: "Target Language"},
{name: 'from', default: 'auto', type: 'language', help: "Source Language"}
],
run: async (context, args) => {
await context.triggerTyping();