Show final move in chess

This commit is contained in:
Dragon Fire
2021-01-24 11:58:27 -05:00
parent cb247ef9d5
commit 9615597e33
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "126.14.1",
"version": "126.14.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {