From 5f076dc8bc69a246f4c8b0466b993d255264b6d3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 23 May 2021 07:17:41 -0400 Subject: [PATCH] Always display code as JS --- commands/code/beautify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/code/beautify.js b/commands/code/beautify.js index 9dd4dbe9..a8395bf0 100644 --- a/commands/code/beautify.js +++ b/commands/code/beautify.js @@ -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\`\`\``); } };