mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +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 }) {
|
run(msg, { code }) {
|
||||||
if (code.lang && code.lang !== 'js') return msg.reply('I can only beautify JavaScript.');
|
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