mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Always display code as JS
This commit is contained in:
@@ -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\`\`\``);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user