Better board display in bingo

This commit is contained in:
Dragon Fire
2020-06-06 22:18:31 -04:00
parent c647f4d8ff
commit 3416f9331e
2 changed files with 7 additions and 2 deletions
+5 -2
View File
@@ -51,7 +51,10 @@ module.exports = class BingoCommand extends Command {
called.push(picked);
for (const player of players.values()) {
try {
await player.user.send(this.generateBoardDisplay(player.board, called));
await player.user.send(stripIndents`
**${picked}** was called in ${msg.channel}.
${this.generateBoardDisplay(player.board, called)}
`);
} catch {
await msg.say(`${player.user}, I couldn't send your board! Turn on DMs!`);
}
@@ -124,7 +127,7 @@ module.exports = class BingoCommand extends Command {
return value.toString().padStart(2, '0');
}).join(' | ');
return `${row} | ${mapVal}`;
}).join('\n\n');
}).join('\n--------------------------\n');
return stripIndents`
\`\`\`
${mapped}
+2
View File
@@ -83,6 +83,8 @@ module.exports = class PokerCommand extends Command {
player.hand.push(...deck.draw(2));
try {
await player.user.send(stripIndents`
_Back to ${msg.channel}._
**Your Poker Hand:**
${player.hand.map(c => c.textDisplay).join('\n')}