diff --git a/commands/games-mp/bingo.js b/commands/games-mp/bingo.js index a888a3bc..7cd0db8f 100644 --- a/commands/games-mp/bingo.js +++ b/commands/games-mp/bingo.js @@ -48,6 +48,7 @@ module.exports = class BingoCommand extends Command { const called = ['FR']; while (!winner) { const validNums = callNums.filter(num => !called.includes(num)); + if (!validNums.length) break; const picked = validNums[Math.floor(Math.random() * validNums.length)]; called.push(picked); for (const player of players.values()) { @@ -80,6 +81,7 @@ module.exports = class BingoCommand extends Command { winner = bingo.first().author; } this.client.games.delete(msg.channel.id); + if (!winner) return msg.say('I called the entire board, but no one called bingo...'); return msg.say(`Congrats, ${winner.user}!`); } catch (err) { this.client.games.delete(msg.channel.id); diff --git a/package.json b/package.json index c7cf89e6..e862be9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.9.3", + "version": "116.9.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {