From af8cf9858ce22bcf3796974ebc84a270bd00a27f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 11 Jan 2021 20:57:15 -0500 Subject: [PATCH] Fix --- commands/util/shutdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/util/shutdown.js b/commands/util/shutdown.js index 12b61d28..925bdfac 100644 --- a/commands/util/shutdown.js +++ b/commands/util/shutdown.js @@ -43,7 +43,8 @@ module.exports = class ShutdownCommand extends Command { const verification = await verify(msg.channel, msg.author); if (verification) { await msg.reply('Waiting...'); - while (games > 0 || calls > 0) await delay(5000); + // eslint-disable-next-line no-unmodified-loop-condition + while (this.client.games.size > 0 || this.client.phone.size > 0) await delay(5000); } } try {