mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Fix
This commit is contained in:
@@ -87,7 +87,11 @@ module.exports = class TicTacToeCommand 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}!` : 'Oh... The cat won.');
|
return msg.say(stripIndents`
|
||||||
|
${winner ? `Congrats, ${winner}!` : 'Oh... The cat won.'}
|
||||||
|
|
||||||
|
${this.displayBoard(sides)}
|
||||||
|
`);
|
||||||
} 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