From 9a0589d2ad6a57239ba276bc7ddb1fa8141dcba2 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 10 Jul 2021 20:05:24 +0200 Subject: [PATCH] Add check for ready.js when updating --- commands/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/update.js b/commands/update.js index 87c30a0..89158cb 100644 --- a/commands/update.js +++ b/commands/update.js @@ -16,8 +16,8 @@ module.exports = { let beforeSize = client.commands.size; reloadCommands(client) let sendText = `${stdout}\nBot updated, and\n${calculateReloaded(beforeSize, client)}` - if(stdout.includes("server.js") || stdout.includes("message.js")){ - sendText = sendText + "\nServer.js OR message.js has been updated.\nThis requires the bot to be restarted." + if(stdout.includes("server.js") || stdout.includes("message.js") || stdout.includes("ready.js")){ + sendText = sendText + "\nServer.js OR message.js OR ready.js has been updated.\nThis requires the bot to be restarted." } message.channel.send(sendText).then(function(msg){ let regex = /(.{0,7}\.\..{0,7})/