Check server dir instead of specific files
This commit is contained in:
parent
9a0589d2ad
commit
5a3f3a5e2c
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue