Remove console permission level

This commit is contained in:
7cc5c4f330d47060 2024-09-06 16:59:16 -04:00
parent 464f1ac009
commit 9928432592
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
3 changed files with 3 additions and 5 deletions

View file

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

View file

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

View file

@ -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'