Add check for ready.js when updating
This commit is contained in:
parent
a3f2804a8c
commit
9a0589d2ad
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ module.exports = {
|
||||||
let beforeSize = client.commands.size;
|
let beforeSize = client.commands.size;
|
||||||
reloadCommands(client)
|
reloadCommands(client)
|
||||||
let sendText = `${stdout}\nBot updated, and\n${calculateReloaded(beforeSize, client)}`
|
let sendText = `${stdout}\nBot updated, and\n${calculateReloaded(beforeSize, client)}`
|
||||||
if(stdout.includes("server.js") || stdout.includes("message.js")){
|
if(stdout.includes("server.js") || stdout.includes("message.js") || stdout.includes("ready.js")){
|
||||||
sendText = sendText + "\nServer.js OR message.js has been updated.\nThis requires the bot to be restarted."
|
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){
|
message.channel.send(sendText).then(function(msg){
|
||||||
let regex = /(.{0,7}\.\..{0,7})/
|
let regex = /(.{0,7}\.\..{0,7})/
|
||||||
|
|
Loading…
Add table
Reference in a new issue