From a289d2a17392f5dfb5fe7945a27ba7bccf840d3b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 29 Sep 2020 14:12:11 -0400 Subject: [PATCH] Fix --- commands/code/beautify.js | 2 +- commands/code/lint.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)]);