This commit is contained in:
7cc5c4f330d47060 2024-11-19 20:05:19 -05:00
parent 1eef37ae86
commit 03f725a888
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
35 changed files with 526 additions and 534 deletions
commands

View file

@ -1,4 +1,4 @@
import cmds from "../util/commands.js"
import cmds from '../util/commands.js'
import { getMessage } from '../util/lang.js'
const sortHelp = function sortHelp (c1, c2) {
@ -171,12 +171,12 @@ const printCmdHelp = (c) => {
}
]
})
if(cmds[cmd].aliases){
const aliasList = [];
for(const item of cmds[cmd].aliases){
if(aliasList.length>0){
if (cmds[cmd].aliases) {
const aliasList = []
for (const item of cmds[cmd].aliases) {
if (aliasList.length > 0) {
aliasList.push({
text: ", ",
text: ', ',
color: c.colors.secondary
})
}
@ -224,7 +224,6 @@ const printCmdHelp = (c) => {
})
}
const execute = (c) => {
if (c.args.length > 0) {
printCmdHelp(c)
@ -236,4 +235,3 @@ const aliases = [
'heko' // Parker2991 request
]
export { execute, aliases }