fix: shorten help output

This commit is contained in:
2024-08-05 02:12:09 +03:00
parent b1d6271f85
commit 4cec0485af

View File

@@ -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 })
}