From a3bb1b57d1ebb8f792b8e93048f178ac5211cd70 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 20 Apr 2020 13:34:34 -0400 Subject: [PATCH] Fix --- commands/games-mp/guesspionage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/games-mp/guesspionage.js b/commands/games-mp/guesspionage.js index ecb51366..259d3940 100644 --- a/commands/games-mp/guesspionage.js +++ b/commands/games-mp/guesspionage.js @@ -133,13 +133,13 @@ module.exports = class GuesspionageCommand extends Command { __**Leaderboard:**__ ${this.makeLeaderboard(pts).join('\n')} - _Next round starting in 10 seconds..._ + ${userTurn.length ? '_Next round starting in 10 seconds..._' : ''} `); - await delay(10000); + if (userTurn.length) await delay(10000); } this.client.games.delete(msg.channel.id); const winner = pts.sort((a, b) => b.points - a.points).first().user; - return msg.say(`Congrats, ${winner.user}!`); + return msg.say(`Congrats, ${winner}!`); } catch (err) { this.client.games.delete(msg.channel.id); throw err;