Remove console permission level
This commit is contained in:
parent
464f1ac009
commit
9928432592
3 changed files with 3 additions and 5 deletions
|
@ -118,14 +118,13 @@ const printCmdHelp = (c) => {
|
|||
const permsN = getMessage(c.lang, 'command.help.permsNormal')
|
||||
const permsT = getMessage(c.lang, 'command.help.permsTrusted')
|
||||
const permsO = getMessage(c.lang, 'command.help.permsOwner')
|
||||
const permsC = getMessage(c.lang, 'command.help.permsConsole')
|
||||
const rPerms = cmds[cmd].level ? cmds[cmd].level : 0
|
||||
c.reply({
|
||||
translate: getMessage(c.lang, 'command.help.commandPerms'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: [permsN, permsT, permsO, permsC][rPerms],
|
||||
text: [permsN, permsT, permsO][rPerms],
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
|
|
|
@ -4,13 +4,12 @@ module.exports = {
|
|||
const permsN = getMessage(c.lang, 'command.help.permsNormal')
|
||||
const permsT = getMessage(c.lang, 'command.help.permsTrusted')
|
||||
const permsO = getMessage(c.lang, 'command.help.permsOwner')
|
||||
const permsC = getMessage(c.lang, 'command.help.permsConsole')
|
||||
c.reply({
|
||||
translate: getMessage(c.lang, 'command.verify.success'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: [permsN, permsT, permsO, permsC][c.verify],
|
||||
text: [permsN, permsT, permsO][c.verify],
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
|
|
|
@ -17,7 +17,7 @@ class ConsoleCommand {
|
|||
this.type = 'console'
|
||||
this.args = cmd.split(' ').slice(1)
|
||||
this.cmdName = cmd.split(' ')[0]
|
||||
this.verify = 3
|
||||
this.verify = 2
|
||||
this.host = ''
|
||||
this.port = '3'
|
||||
this.serverName = 'botvX Console'
|
||||
|
|
Loading…
Reference in a new issue