Add a command event
This commit is contained in:
parent
d1790079d3
commit
5575ec02a2
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ module.exports = {
|
|||
if (verify > 0) {
|
||||
text = cmd.slice(0, cmd.length - 1).join(' ')
|
||||
}
|
||||
b.emit("command", name, uuid, text, prefix)
|
||||
if (cmds[cmd[0].toLowerCase()]) {
|
||||
const command = cmds[cmd[0].toLowerCase()]
|
||||
if (command.level !== undefined && command.level > verify) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue