Code: Select all
bind time - "0 *" dieproc
proc dieproc { } {
die "Bot restarting"
}
Code: Select all
#!/bin/sh
killall -9 -u peter -m eggdrop-1.6.15
cd /home/peter/eggdrop
/home/peter/eggdrop/eggdrop /home/peter/eggdrop/eggdrop.conf
/home/peter/eggdrop/eggdrop /home/peter/eggdrop/khmer-webnet.conf
/home/peter/eggdrop/eggdrop /home/peter/eggdrop/theavy.conf
/home/peter/eggdrop/eggdrop /home/peter/eggdrop/kguard.conf
Code: Select all
*/59 * * * * * /home/peter/eggdrop/funk >/dev/null 2>&1
Code: Select all
./autobotchk eggdrop.conf -5 -noemail
done it and wil see it tomorrow when i wak eup and test it but 5 minute it's too long because my bot run trivia , don't have any way to kill and bring it back after kill few second ?^DooM^ wrote:Put that script I wrote on the bots that you want to kill every hour.
Then goto your shells eggdrop script directory and type this.
Replace the word eggdrop.conf with the config you want to restart.Code: Select all
./autobotchk eggdrop.conf -5 -noemail
That will check every 5 minutes to see if your bot is dead or not and restart it if it is dead. 5 minutes is the lowest setting you can have if I remember correctly.
Code: Select all
./autobotchk eggdrop.conf -1 -noemail
Code: Select all
18550 ?? S 0:01.28 ./eggdrop eggdrop.conf (eggdrop-1.6.15)
Code: Select all
khmer has been idle 8secs, signed on Sat Mar 19 14:19:13
while time now [15:19:46] ( in irc )
18550 ?? S 0:01.95 ./eggdrop eggdrop.conf (eggdrop-1.6.15) ( in shell )
Code: Select all
.binds
Code: Select all
bind evnt - init-server dieproc
proc dieproc { } {
timer 60 {die "Bot restarting"}
}
should it work when the timer is set to one ?^DooM^ wrote:that script should kill your bot on the hour every hour. not an hour after its been started. if you want it to be an hour from start use this code instead.Code: Select all
bind evnt - init-server dieproc proc dieproc { } { timer 60 {die "Bot restarting"} }