mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Show final board
This commit is contained in:
@@ -128,7 +128,12 @@ module.exports = class ConnectFourCommand extends Command {
|
|||||||
}
|
}
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
if (winner === 'time') return msg.say('Game ended due to inactivity.');
|
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) {
|
} catch (err) {
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
Reference in New Issue
Block a user