diff --git a/commands/util/shutdown.js b/commands/util/shutdown.js index 9eb19a05..923f0d7d 100644 --- a/commands/util/shutdown.js +++ b/commands/util/shutdown.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { verify } = require('../../util/Util'); +const { verify, delay } = require('../../util/Util'); const texts = require('../../assets/json/shutdown'); module.exports = class ShutdownCommand extends Command { @@ -39,9 +39,12 @@ module.exports = class ShutdownCommand extends Command { currentString += `${calls} phone call${calls > 1 ? 's' : ''}`; if (calls === 1 && (games > 0 ? games === 1 : true)) areIs = 'is'; } - await msg.reply(`There ${areIs} currently **${currentString}**. Are you sure?`); + await msg.reply(`There ${areIs} currently **${currentString}**. Wait for them to finish?`); const verification = await verify(msg.channel, msg.author); - if (!verification) return msg.say('Aborted restart.'); + if (verification) { + await msg.reply('Waiting...'); + while (games > 0 || calls > 0) delay(5000); + } } try { this.uses++; diff --git a/package.json b/package.json index ddc83dc0..789d3b44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "124.5.6", + "version": "124.5.7", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {