Edit update text if bot needs to be restarted

This commit is contained in:
SileNce5k 2021-07-15 14:04:02 +02:00
parent 792569455e
commit b29cfa5ed4
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -17,7 +17,7 @@ module.exports = {
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("server/")){ 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." sendText = sendText + "\nServer.js OR a file the server/ directory 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 = /([^\s]+)\.\.([^\s]+)/ let regex = /([^\s]+)\.\.([^\s]+)/