From 3416f9331eb585a48a49e00aa1d18933a492b5c3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 6 Jun 2020 22:18:31 -0400 Subject: [PATCH] Better board display in bingo --- commands/games-mp/bingo.js | 7 +++++-- commands/games-mp/poker.js | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/bingo.js b/commands/games-mp/bingo.js index bc37e2e2..d4a14423 100644 --- a/commands/games-mp/bingo.js +++ b/commands/games-mp/bingo.js @@ -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} diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index 6bd5fd77..f59286d7 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -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')}