mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -113,7 +113,9 @@ module.exports = class DotsAndBoxesCommand extends Command {
|
||||
userTurn = !userTurn;
|
||||
}
|
||||
}
|
||||
winner = userOwned === oppoOwned ? null : userOwned > oppoOwned ? msg.author : opponent;
|
||||
winner = userOwned.length === oppoOwned.length
|
||||
? null
|
||||
: userOwned.length > oppoOwned.length ? msg.author : opponent;
|
||||
this.client.games.delete(msg.channel.id);
|
||||
return msg.say(winner ? `Congrats, ${winner}!` : 'Looks like it\'s a draw...');
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user