From 7b069ad42997f04a12911eb646749ca987d69fcf Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 9 Jul 2021 17:58:44 +0200 Subject: [PATCH] Add warning if server.js or message.js is updated --- commands/update.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/update.js b/commands/update.js index e664b2b..87c30a0 100644 --- a/commands/update.js +++ b/commands/update.js @@ -16,6 +16,9 @@ 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." + } message.channel.send(sendText).then(function(msg){ let regex = /(.{0,7}\.\..{0,7})/ let commits = stdout.match(regex)[0]