This commit is contained in:
Dragon Fire
2020-09-29 14:12:11 -04:00
parent 1902206eaa
commit a289d2a173
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class BeautifyCommand extends Command {
});
}
async run(msg, { code }) {
run(msg, { code }) {
return msg.reply(stripIndents`
\`\`\`${code.lang || 'js'}
${beautify(code.code)}
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class LintCommand extends Command {
});
}
async run(msg, { code }) {
run(msg, { code }) {
if (!code.lang || ['js', 'javascript'].includes(code.lang)) {
const errors = linter.verify(code.code, defaultConfig);
if (!errors.length) return msg.reply(goodMessages[Math.floor(Math.random() * goodMessages.length)]);