This commit is contained in:
Dragon Fire
2021-01-09 18:25:02 -05:00
parent 0945252b72
commit bd912095d0
+5 -1
View File
@@ -87,7 +87,11 @@ module.exports = class TicTacToeCommand 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}!` : 'Oh... The cat won.');
return msg.say(stripIndents`
${winner ? `Congrats, ${winner}!` : 'Oh... The cat won.'}
${this.displayBoard(sides)}
`);
} catch (err) {
this.client.games.delete(msg.channel.id);
throw err;