Disable settings command at console
This commit is contained in:
parent
843215cae5
commit
934b20bae2
2 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,13 @@ const { languages, getMessage } = require('../util/lang.js')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
module.exports = {
|
module.exports = {
|
||||||
execute: (c) => {
|
execute: (c) => {
|
||||||
|
if(c.type == "console"){
|
||||||
|
c.reply({
|
||||||
|
text: getMessage(c.lang, 'command.settings.disabled.console'),
|
||||||
|
color: c.colors.secondary
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
const subcmd = c.args.splice(0, 1)[0]
|
const subcmd = c.args.splice(0, 1)[0]
|
||||||
switch (subcmd) {
|
switch (subcmd) {
|
||||||
case 'set':{
|
case 'set':{
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
"command.help.noCommand": "Command does not exist",
|
"command.help.noCommand": "Command does not exist",
|
||||||
"command.help.alias": "Alias to %s",
|
"command.help.alias": "Alias to %s",
|
||||||
"command.netmsg.disabled": "This command has been disabled on this server.",
|
"command.netmsg.disabled": "This command has been disabled on this server.",
|
||||||
|
"command.settings.disabled.console": "This command cannot be run from the console.",
|
||||||
"command.settings.get.colorPrimary": "Primary color",
|
"command.settings.get.colorPrimary": "Primary color",
|
||||||
"command.settings.get.colorSecondary": "Secondary color",
|
"command.settings.get.colorSecondary": "Secondary color",
|
||||||
"command.settings.get.language": "Language",
|
"command.settings.get.language": "Language",
|
||||||
|
|
Loading…
Reference in a new issue