This commit is contained in:
Dragon Fire
2020-11-20 09:39:13 -05:00
parent 2039767020
commit d8c76bd53f
+2 -2
View File
@@ -33,11 +33,11 @@ module.exports = class ShutdownCommand extends Command {
if (games > 0) {
currentString += `${games} game${games > 1 ? 's' : ''}`;
if (calls > 0) currentString += ' and ';
if (games === 1 && calls < 1) areIs = 'is';
if (games === 1 && (calls > 0 ? calls === 1 : true)) areIs = 'is';
}
if (calls > 0) {
currentString += `${calls} phone call${calls > 1 ? 's' : ''}`;
if (calls === 1 && games < 1) areIs = 'is';
if (calls === 1 && (games > 0 ? games === 1 : true)) areIs = 'is';
}
await msg.reply(`There ${areIs} currently **${currentString}**. Are you sure?`);
const verification = await verify(msg.channel, msg.author);