diff --git a/commands/code/beautify.js b/commands/code/beautify.js index 2ca7f74c..3b34f9c5 100644 --- a/commands/code/beautify.js +++ b/commands/code/beautify.js @@ -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)} diff --git a/commands/code/lint.js b/commands/code/lint.js index 460dcc0c..8c0cb0f9 100644 --- a/commands/code/lint.js +++ b/commands/code/lint.js @@ -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)]);