![]() |
|
|||||||||||||||||
>> Installing Eggdrop Bot for FreeBSD and Linux
- Installing Eggdrop for FreeBSD - Installing Eggdrop for Debian Linux
Eggdrop is the world's most popular Open Source IRC bot. One of the features that makes Eggdrop stand out from other bots is module and Tcl scripting support. With scripts and modules, you can make the bot preform almost any task you want. Installing Eggdrop for FreeBSD (via ports system) Run the below commands: # cd /usr/ports/irc/eggdrop/ Leave the default options as set in the config file. After a successful compilation, we should start to configure the bot. Copy the config file: # cp /usr/local/etc/eggdrop.conf.sample /usr/local/etc/eggdrop.conf Edit your configuration file /usr/local/etc/eggdrop.conf by changing the options: Set the ident of the eggdrop: set username "lamest" This line is for information purposes only. set admin "Lamer lamer@lamest.lame.org This is what you use to specify your bot's nickname: set nick "Lamestbot" You should specify multiple servers in this list, in case the bot is unable to connect to the first server. The format for this list is shown below: set servers { Shortly after this will be the line to set where to store information about known users: set userfile "LamestBot.user" The exact location of your file is /usr/local/share/eggdrop Scrolling far down once again you will eventually find the line that says where Eggdrop will store information about channels it goes in: set chanfile "LamestBot.chan" The following line needs to be either commented out or deleted to allow Eggdrop to run: die "Please make sure you edit your config file completely." Comment out or delete this line, too: die "You didn't edit your config file completely like you were told, did you?" set here the port where eggdrop should listen: listen 3333 all After this is another die line that needs commenting out or deleting. A little after this is a commented line to choose what method of encryption you'd like to use on the passwords stored in the user file. Since blowfish is pretty much the only option available at the moment, you're pretty safe to just uncomment this line; Eggdrop will not start unless you do: loadmodule blowfish Create user eggdrop (DO NOT run the eggdrop as root), by the command adduser, or through the ISPmanager. Change the permissions to the directory /usr/local/share/eggdrop # chown eggdrop /usr/local/share/eggdrop Log into the system with eggdrop user login name. That pretty much concludes the minimum editing that needs to be done to eggdrop.conf in order for it to work properly. % eggdrop -m Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads Now you need to identify to your new bot. Create an andministrator of your bot and telnet to the bot on the port you picked (3333) % telnet localhost 3333 and enter NEW when asked for your name (administrator's name and password): This is the telnet interface to Lamestbot, an eggdrop bot. Stop your bot: % killall eggdrop and start again without using the keys: % eggdrop To find out what a command does, pick telnet port and use ".help Crontab is used to automatically restart the bot if the shell it's on reboots or if the bot process is killed for some other reason. You can add the task through the ISPmanager Control Panel: % crontab -e That is all for this tutorial. You should now have a working bot that is on IRC and in the channel of your choice. You should be able to log into the partyline and the bot should recognise you as its master.
Installing Eggdrop for Debian Linux (debian-4.0-mimimal) Since we have eggdrop in the system repository, we used the apt-get package manager. Use the line as given below for apt-cache update: # apt-get update This command will install eggdrop: # apt-get install eggdrop If you want to install telnet server package you can also use the following command: # apt-get install telnet Set master of the bot: # adduser eggdrop Log into the system with eggdrop master login name. Extract the sample configuration file and copy it into the user home directory: $ cd /home/eggdrop/ Edit the config file as described in the tutorial for FreeBSD. Now that you've compiled, installed, and configured Eggdrop, it's time to start it up. Switch to the directory to which you installed the bot and type $ eggdrop -m. Eggdrop should start up, and the bot should appear on IRC within a few minutes. $ eggdrop –m Connect to the telnet partyline: $ telnet localhost 3333 Configure the bot by following the same steps, which are described in this in tutorial for FreeBSD. After configuration, do a bit of initialization work. As a result the files .user and .chan will appear in /home/eggdrop/. In the event our server reboots, or some other technical problem occurs, crontab will restart your eggdrop bot: $ crontab -e Add the line: @reboot cd /home/eggdrop && eggdrop Enjoy!
|
|
|||||||||||||||||