mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Show final move in chess
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "126.14.1",
|
||||
"version": "126.14.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user