Join us in #aeshells on irc.freenode.net!

AEshells.com Articles Eggdrop how to setup a crontab for eggdrop
Members : 3113
Content : 23
Content View Hits : 50596
how to setup a crontab for eggdrop PDF Print E-mail
Written by alex   
Monday, 06 April 2009 12:46

In order for your eggdrop to function well and to come back to irc even if there was a server reboot you need a crontab.  In the scripts directory of your eggdrop there is a script calle botchk which can check if your bot is running at pre-defined intervals.

To use it you must first edit it to suit your needs:
botdir - this is the directory where you have your eggdrop
e.g. botdir="/home/mydir/mybot"
botname - this is the botnet-nick you assigned for your bot.
e.g. botname="LamestBot"
userfile - this is the file where the bot stores it's users
userfile="LamestBot.user"
pidfile - the bot's pid file
pidfile="pid.LamestBot"

after editing these you should create a crontab for botchk like this
1. Create a new file called 'mycron' and put these lines into it:
 
 0,10,20,30,40,50 * * * * /home/mydir/botchk
 
 If you don't want to get e-mails from cron, use this:
 
 0,10,20,30,40,50 * * * * /home/mydir/botchk >/dev/null 2>&1
 
 2. From your shell prompt, type '% crontab mycron'.

Last Updated on Tuesday, 07 April 2009 14:02