Eggdrop IRC Bot
Step #1 – Install Packages
Update and Upgrade your system:
$ sudo apt update
Eggdrop:
$ sudo apt install tcl tcl-dev -y
$ sudo apt install openssl libssl-dev -y
Scripts:
$ sudo apt install tcllib -y
$ sudo apt install tcl-tls -y
Step #2 – Create a new user for Eggdrop
Add new user:
$ sudo adduser eggdrop
Switch user:
$ su eggdrop
Step #3 – Install Eggdrop
$ wget http://ftp.eggheads.org/pub/eggdrop/source/1.10/eggdrop-1.10.1.tar.gz
$ tar zxvf eggdrop-1.10.1.tar.gz
$ cd eggdrop-1.10.1
$ ./configure
$ make config
$ make
$ make install
$ cd ~/eggdrop
$ nano eggdrop.conf
After configuration is done, create userfile with this command: ./eggdrop -m eggdrop.conf
| Start Eggdrop | $ ./eggdrop eggdrop.conf |
| Stop #1 – Terminate All Eggdrop Processes | $ pkill -15 eggdrop |
| Stop #2 – Kill Process ID | $ ps x$ kill -9 <pid> |
Step #4 – Setting up a Crontab using autobotchk
$ cd ~/eggdrop
$ cp scripts/autobotchk ..;
$ cd scripts
$ ./autobotchk eggdrop.conf -noemail -5
| List cron jobs | $ crontab -l |
| Edit Crontab | $ crontab -e |
| Start Cron Daemon | $ ./crond start |
| Stop Cron Daemon | $ ./crond stop |
| To remove crontabs | $ crontab -r |