Add warning if server.js or message.js is updated
This commit is contained in:
parent
ca1bf59c5e
commit
7b069ad429
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue