From 9615597e3394319136f77a8e59486e9188421666 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Jan 2021 11:58:27 -0500 Subject: [PATCH] Show final move in chess --- commands/games-mp/chess.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 1cc63272..97d495d2 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -162,7 +162,7 @@ module.exports = class ChessCommand extends Command { if (!gameState.checkMate) return msg.say('Game ended due to forfeit.'); const winner = gameState.turn === 'black' ? whitePlayer : blackPlayer; return msg.say(`Checkmate! Congrats, ${winner}!`, { - files: [{ attachment: this.displayBoard(gameState), name: 'chess.png' }] + files: [{ attachment: this.displayBoard(gameState, prevPieces), name: 'chess.png' }] }); } catch (err) { this.client.games.delete(msg.channel.id); diff --git a/package.json b/package.json index d2c37d0c..f41f98ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "126.14.1", + "version": "126.14.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {