Skip to content

Commit

Permalink
Formatting tweak for #28
Browse files Browse the repository at this point in the history
  • Loading branch information
jake@chrx committed Mar 18, 2018
1 parent f62229a commit 4c4ea6a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions discordlib/chatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 4c4ea6a

Please # to comment.