mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -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
|
@ -38,6 +38,7 @@ module.exports = {
|
|||
aliases: ['dictionary', 'dict'],
|
||||
metadata: {
|
||||
description: 'Returns dictionary definitions for words.',
|
||||
description_short: 'Dictionary definitions.',
|
||||
examples: ['dictionary Flask'],
|
||||
category: 'search',
|
||||
usage: 'define <query>'
|
||||
|
|
|
@ -14,12 +14,13 @@ module.exports = {
|
|||
aliases: ['e', 'emote', 'enlarge', 'em', 'emojimix'],
|
||||
metadata: {
|
||||
description: 'Displays information about emoji. Supports regular emoji and discord emoji.\n\nUsing two emoji will mix the two emoji together.',
|
||||
description_short: 'Emoji Information, Emoji Mixing',
|
||||
examples: ['enlarge 😀', 'emojimix 🐱 🍞'],
|
||||
category: 'utils',
|
||||
usage: 'emoji <emoji> [<emoji to mix>]'
|
||||
},
|
||||
args: [
|
||||
{name: 'type', default: 'twitter'}
|
||||
{name: 'type', default: 'twitter', type: 'string', help: `Emoji platform type`}
|
||||
],
|
||||
run: async (context, args) => {
|
||||
await context.triggerTyping()
|
||||
|
|
|
@ -9,6 +9,7 @@ module.exports = {
|
|||
name: 'ocr',
|
||||
metadata: {
|
||||
description: 'Uses Optical Character Recognition to detect text in images.',
|
||||
description_short: 'Image Text Recognition',
|
||||
examples: ['ocr'],
|
||||
category: 'utils',
|
||||
usage: 'ocr <attachment>'
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -12,6 +12,7 @@ module.exports = {
|
|||
aliases: ['scan'],
|
||||
metadata: {
|
||||
description: 'Generates a QR code. If no input is provided acts as a QR code scanner.',
|
||||
description_short: 'QR Code Scanner/Creator',
|
||||
examples: ['qr big nutty'],
|
||||
category: 'utils',
|
||||
usage: `qr <contents>`
|
||||
|
|
|
@ -17,6 +17,7 @@ module.exports = {
|
|||
aliases: ['ss'],
|
||||
metadata: {
|
||||
description: 'Takes screenshots of a website.',
|
||||
description_short: 'Screenshot websites.',
|
||||
examples: ['ss google.com'],
|
||||
category: 'utils',
|
||||
usage: 'screenshot <url>'
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue