diff --git a/commands/games-mp/dots-and-boxes.js b/commands/games-mp/dots-and-boxes.js index 7e98d30e..a8a08a99 100644 --- a/commands/games-mp/dots-and-boxes.js +++ b/commands/games-mp/dots-and-boxes.js @@ -121,11 +121,11 @@ module.exports = class DotsAndBoxesCommand extends Command { } if (lastTurnTimeout) lastTurnTimeout = false; } + this.client.games.delete(msg.channel.id); if (winner === 'time') return msg.say('Game ended due to inactivity.'); 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) { this.client.games.delete(msg.channel.id);