diff --git a/commands/settings.js b/commands/settings.js index 3b9df27..550a3ab 100644 --- a/commands/settings.js +++ b/commands/settings.js @@ -2,6 +2,13 @@ const { languages, getMessage } = require('../util/lang.js') const fs = require('fs') module.exports = { 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] switch (subcmd) { case 'set':{ diff --git a/lang/en-US.json b/lang/en-US.json index 7d46c6b..bdf6f31 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -64,6 +64,7 @@ "command.help.noCommand": "Command does not exist", "command.help.alias": "Alias to %s", "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.colorSecondary": "Secondary color", "command.settings.get.language": "Language",