From 9928432592236c3ad8e8853476d8cda9176701b1 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Fri, 6 Sep 2024 16:59:16 -0400 Subject: [PATCH] Remove console permission level --- commands/help.js | 3 +-- commands/validate.js | 3 +-- util/ConsoleCommand.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/commands/help.js b/commands/help.js index 31c0547..af2700b 100644 --- a/commands/help.js +++ b/commands/help.js @@ -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 } ] diff --git a/commands/validate.js b/commands/validate.js index b4d3542..944087a 100644 --- a/commands/validate.js +++ b/commands/validate.js @@ -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 } ] diff --git a/util/ConsoleCommand.js b/util/ConsoleCommand.js index ebf1f64..72b6f61 100644 --- a/util/ConsoleCommand.js +++ b/util/ConsoleCommand.js @@ -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'