Install Eggdrop

Install Eggdrop

eggman

If you experienced with the Unix shell environment and don’t think you need to read all the stuff on this page, follow this quick guide to installing Eggdrop (otherwise, proceed straight to Getting the Eggdrop Source):

1) Download eggdrop1.6.21.tar.gz from the eggheads ftp.
2) Telnet and FTP to the shell.
3) Upload eggdrop1.6.21.tar.gz via FTP.
4) In telnet type tar zxvf eggdrop1.6.21.tar.gz
5) Type cd eggdrop1.6.21
6) Type ./configure
7) Type make config (compiles all modules) or make iconfig (allows you to select the modules to compile).
8) Type make
9) Type make install DEST=/home/name/botdir
10) Switch to the botdir and edit the sample config file eggdrop.conf, then rename it to something appropriate (e.g. botnick.conf).
11) Type ./eggdrop -m <config file>

EDIT THE .CONF FILE

channel add: this is the command you use to add channels to the bot. There are lots of options for this command. Channels are added in the following format:
channel add #donkeys {
options
}
channel set #donkeys +option -option
channel add #horses {
options
}
channel set #horses +option -option

Editing The botchk File

The botchk script and crontab are used to automatically restart the bot if the shell it on reboots or if the bot process is killed for some other reason. You can find the botchk file in the scripts directory (in the directory you installed the bot to). Newer versions of Eggdrop (from 1.3.24i) have a script included that automatically configures botchk and crontab for you. In telnet, simply switch to the scripts directory and

type chmod 700 autobotchk then ./autobotchk <config> -dir /home/botdir -noemail, where /home/botdir is the directory you installed the bot to and <config> is the name you chose for your config file.
Otherwise, you can edit the botchk file and insert the required crontab entry manually. There are only four things you need to set in the botchk file, all of which are pretty self explanatory. Once you edited the botchk file, you need to add an entry to your crontab. Here the best method:

1) Your crontab line should look like:
0,10,20,30,40,50 * * * * /home/botdir/scripts/botchk >/dev/null 2>&1
This will run the botchk script every 10 minutes, which checks that the bot is running and restarts it if it isn’t. You just need to change the /home/botdir part to the correct path to the bot on your shell (type pwd to show this). Type the line in Notepad or some place where you can highlight and copy it from.

2) Type crontab -e. This should bring up the vi editor (it will appear as a bunch of lines starting with the ~ character), but may open up the pico editor instead.

Install these 2 packages (and let the dependencies also install), and then this configure string works. For some reason, we no longer have a plain old libtcl.so, and eggdrop requires BOTH of these options to be provided or neither one works…
sudo apt-get install -y libtcl8.5 tcl8.5-dev
./configure --with-tcllib=/usr/lib/x86_64-linux-gnu/libtcl8.5.so --with-tclinc=/usr/include/tcl8.5/tcl.h
Facebook Comments
It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

About alderson

AKA Pseudo

Comments are closed.
Asia/Jerusalem : 09:51:20America/New_York : 02:51:20Asia/Tokyo : 16:51:20Asia/Kuala_Lumpur : 15:51:20