diff --git a/commands/code/beautify.js b/commands/code/beautify.js index dc6d7432..9dd4dbe9 100644 --- a/commands/code/beautify.js +++ b/commands/code/beautify.js @@ -21,6 +21,7 @@ module.exports = class BeautifyCommand extends Command { } run(msg, { code }) { + if (code.lang && code.lang !== 'js') return msg.reply('I can only beautify JavaScript.'); return msg.reply(`\`\`\`${code.lang || 'js'}\n${beautify(code.code)}\n\`\`\``); } };