how to make a crontab for eggdrops



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 called botchk which can check from 10 to 10 minutes if the bot is running.

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'.