From 4c4ea6a4b3ef082a0ab80ac2449224fcf29b1cbb Mon Sep 17 00:00:00 2001 From: "jake@chrx" Date: Sat, 17 Mar 2018 21:00:38 -0600 Subject: [PATCH] Formatting tweak for #28 --- discordlib/chatter.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/discordlib/chatter.js b/discordlib/chatter.js index 27552f4..f5b868a 100644 --- a/discordlib/chatter.js +++ b/discordlib/chatter.js @@ -3,29 +3,27 @@ exports.sass = function(input) { } exports.summon = function(input, message) { - //TODO Consider a ring of :fire: and actually tagging summoned user if (message.mentions.users) { if (message.mentions.users.size == 1) { let summoned = message.mentions.members.first() - // The summon circle is 32 chars wide, 16 is the mid point + // The summon circle is ~36 chars wide, 18 or 19 is the mid point let padding = ' '.repeat(18 - (summoned.displayName.length / 2)) return `your wish is my command... COME FORTH ${summoned}! \`\`\` - %%% %%% - %%% %%% + %#% %#% + %#% %#% - %%% %%% + %#% %#% - %%% %%% + %#% %#% ${padding + summoned.displayName} - %%% %%% + %#% %#% - %%% %%% + %#% %#% - %%% %%% - - %%% %%%\`\`\`` + %#% %#% + %#% %#%\`\`\`` } } return "you can't just summon nothing, that's not how this works!"