From 287f063171c8fcdaf803b6486358d65af7ea58e9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 20 Nov 2020 09:37:12 -0500 Subject: [PATCH] Fix shutdown text --- commands/util/shutdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/util/shutdown.js b/commands/util/shutdown.js index bda76994..06e5f30b 100644 --- a/commands/util/shutdown.js +++ b/commands/util/shutdown.js @@ -32,12 +32,12 @@ module.exports = class ShutdownCommand extends Command { let currentString = ''; if (games > 0) { currentString += `${games} game${games > 1 ? 's' : ''}`; - if (calls < 1) currentString += ' and '; - if (games === 1) areIs = 'is'; + if (calls > 1) currentString += ' and '; + if (games === 1 && calls < 1) areIs = 'is'; } if (calls > 0) { currentString += `${calls} phone call${calls > 1 ? 's' : ''}`; - if (calls === 1 && (games > 0 ? games === 1 : true)) areIs = 'is'; + if (calls === 1 && games < 1) areIs = 'is'; } await msg.reply(`There ${areIs} currently **${currentString}**. Are you sure?`); const verification = await verify(msg.channel, msg.author);