Make sure to configure the pidfile in your bot before adding this script to crontab, or else it will spawn lots of copies!
config pidfile botname.pid
flush
Edit the script and fill in the bot's directory, pidfile and config file. Then put something like this in your crontab:
*/5 * * * * /home/botname/supybot-botchk-cron