From 5a3f3a5e2c34780f4237f95646f742c48926b852 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 10 Jul 2021 20:08:25 +0200 Subject: [PATCH] Check server dir instead of specific files --- commands/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/update.js b/commands/update.js index 89158cb..7b6a2e6 100644 --- a/commands/update.js +++ b/commands/update.js @@ -16,7 +16,7 @@ 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") || stdout.includes("ready.js")){ + if(stdout.includes("server.js") || stdout.includes("server/")){ 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){