Always display code as JS

This commit is contained in:
Dragon Fire
2021-05-23 07:17:41 -04:00
parent 563343d3ff
commit 5f076dc8bc
+1 -1
View File
@@ -22,6 +22,6 @@ 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\`\`\``);
return msg.reply(`\`\`\`js\n${beautify(code.code)}\n\`\`\``);
}
};