From d8c4b53036adb02286e9515b6f99aafc7199c65c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 23 May 2021 07:16:03 -0400 Subject: [PATCH] Don't use stripIndent at all in beautify --- commands/code/beautify.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commands/code/beautify.js b/commands/code/beautify.js index 7d65b54e..dc6d7432 100644 --- a/commands/code/beautify.js +++ b/commands/code/beautify.js @@ -1,6 +1,5 @@ const Command = require('../../structures/Command'); const { js_beautify: beautify } = require('js-beautify'); -const { stripIndent } = require('common-tags'); module.exports = class BeautifyCommand extends Command { constructor(client) { @@ -22,10 +21,6 @@ module.exports = class BeautifyCommand extends Command { } run(msg, { code }) { - return msg.reply(stripIndent` - \`\`\`${code.lang || 'js'} - ${beautify(code.code)} - \`\`\` - `); + return msg.reply(`\`\`\`${code.lang || 'js'}\n${beautify(code.code)}\n\`\`\``); } };