From b79fb4ffcc32d6c0d84d9b6eb08d868645d3d187 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 11 Nov 2019 23:08:06 -0500 Subject: [PATCH] Bots can't reply --- commands/games/russian-roulette.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/commands/games/russian-roulette.js b/commands/games/russian-roulette.js index 560401a3..8d641ca7 100644 --- a/commands/games/russian-roulette.js +++ b/commands/games/russian-roulette.js @@ -26,11 +26,13 @@ module.exports = class RussianRouletteCommand extends Command { if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`); this.client.games.set(msg.channel.id, { name: this.name }); try { - await msg.say(`${opponent}, do you accept this challenge?`); - const verification = await verify(msg.channel, opponent); - if (!verification) { - this.client.games.delete(msg.channel.id); - return msg.say('Looks like they declined...'); + if (!opponent.bot) { + await msg.say(`${opponent}, do you accept this challenge?`); + const verification = await verify(msg.channel, opponent); + if (!verification) { + this.client.games.delete(msg.channel.id); + return msg.say('Looks like they declined...'); + } } let userTurn = true; const gun = shuffle([true, false, false, false, false, false, false, false]);