Add check for ready.js when updating

This commit is contained in:
SileNce5k 2021-07-10 20:05:24 +02:00
parent a3f2804a8c
commit 9a0589d2ad
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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})/