mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-17 17:28:08 +00:00
fix: shorten help output
This commit is contained in:
@@ -38,9 +38,13 @@ export default command({
|
||||
)}\``
|
||||
}
|
||||
|
||||
cmd.examples.forEach((example) => {
|
||||
description += `\n\t\t\t*e.g.:* ${example}`
|
||||
})
|
||||
if (name) {
|
||||
cmd.examples.forEach((example) => {
|
||||
description += `\n\t\t\t*e.g.:* ${example}`
|
||||
})
|
||||
} else {
|
||||
description += `\n\t\t\tFor examples, use \`!help ${cmd.command}\`.`
|
||||
}
|
||||
|
||||
data.push({ command: name, description })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user