From fe5959cc724df32295488004f2a7e50a232d5c8f Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Wed, 31 Jul 2019 00:05:56 +0530 Subject: [PATCH] fix codeblock formatting for mobile (#61) --- src/commands/info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/info.js b/src/commands/info.js index 3642e1a..7f6a710 100644 --- a/src/commands/info.js +++ b/src/commands/info.js @@ -15,8 +15,8 @@ exports.command = function (message) { let warns = state.warnings.filter(x => x.id == user.id) let bans = state.bans.filter(x => x.id == user.id) - const warnsString = `Warns:\`\`\`${formatWarnings(warns).join('\n')}\`\`\`` - const bansString = `Bans:\`\`\`${formatBans(bans).join('\n')}\`\`\`` + const warnsString = `Warns: \`\`\`${formatWarnings(warns).join('\n')}\`\`\`` + const bansString = `Bans: \`\`\`${formatBans(bans).join('\n')}\`\`\`` message.channel.send(`\`${user.username} (${totalWarnings}) information:\`${warns.length != 0 ? warnsString : ''}${bans.length != 0 ? bansString : ''}`) });