From 148136b197cf05fc9da0580a4e299525df1590ce Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 9 Jan 2021 12:56:24 -0500 Subject: [PATCH] Show final board --- commands/games-mp/connect-four.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index 0e00b912..4e1b9ae5 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -128,7 +128,12 @@ module.exports = class ConnectFourCommand extends Command { } this.client.games.delete(msg.channel.id); if (winner === 'time') return msg.say('Game ended due to inactivity.'); - return msg.say(winner ? `Congrats, ${winner}!` : 'Looks like it\'s a draw...'); + return msg.say(stripIndents` + ${winner ? `Congrats, ${winner}!` : 'Looks like it\'s a draw...'} + + ${this.displayBoard(board, playerOneEmoji, playerTwoEmoji)} + ${nums.join('')} + `); } catch (err) { this.client.games.delete(msg.channel.id); throw err;