mirror of
https://github.com/Expand-sys/mcbot
synced 2025-12-17 07:12:13 +11:00
added killer
This commit is contained in:
parent
40580ecc47
commit
4bdec181ab
1 changed files with 1 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ module.exports = {
|
|||
channelSend(`Server offline for ~${serverofflinefor}`)
|
||||
if(serverofflinefor > 60 && restarted != 1){
|
||||
channelSend(`server Offline for 60 seconds Restarting`)
|
||||
const killer = spawn("screen", ['-XS', 'minecraft'])
|
||||
const mc = spawn("screen", ['-dmS', 'minecraft', '/bin/bash', `${process.env.SERSTARTLOC}`])
|
||||
restarted = 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue