Eggdrop is a popular IRC bot. It was originally written in December 1993 by Robey Pointer. Eggdrop started out as an efficient substitute for cEvin, Jamie's IRC bot which was reaching limitations due to its script based design.
Eggdrop is written in the C programming language, and features an interface for scripts that allows the user to enhance the functionality of the bot. The language used in the script interface is Tcl.
In its time, the eggdrop has become one of the most popular IRC bots. Many of the bots that are run by normal IRC users (as opposed to the bots run by IRC operators, which are usually the network services like ChanServ and NickServ) are eggdrops.
For example we will configure eggdrop with ipv6 support to connect to freenode ipv6 server (ipv6.chat.us.freenode.net) and join channel #netlinux bot's nick will be “pusdurnis”.
To configure eggdrop in simple way here is the script on our system just type ”setup” on the shell and you can setup/configure eggdrop by prompts, like this:
here is eggdrop.conf example
loadmodule channels
set mod-path "modules/"
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
loadmodule blowfish
set username "test"
set admin "test <email: null@example.com>"
set network "freenode"
set timezone "EST"
set userfile "pusdurnis.user"
set chanfile "pusdurnis.chan"
listen 8026 all
set nick "pusdurnis"
set altnick "pusdurnis?"
set my-ip "91.121.140.63"
set my-ip6 "2001:470:1f09:409::1008"
set servers {
ipv6.chat.us.freenode.net:6667
}
channel add #netlinux {
chanmode "+nt"
}
logfile mcso * "logs/pusdurnis.log"
set log-time 1
set switch-logfiles-at 300
set help-path "help/"
set text-path "text/"
set temp-path "/tmp"
set motd "text/motd"
set telnet-banner "text/banner"
set userfile-perm 0600
set remote-boots 2
set share-unlinks 1
set ident-timeout 5
set answer-ctcp 3
set server-cycle-wait 60
set server-timeout 60
set serverror-quit 1
set bounce-bans 1
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
set max-notes 50
set note-life 60
set notify-onjoin 1
set console-autosave 1
Then you configure your eggdrop please run ./eggdrop -m and it will come to IRC.
Check your ipv6 configuration. For example it can't be more set “hostname” or set “hostname6” variables! We need only two this
set my-ip "91.121.140.63" set my-ip6 "2001:470:1f09:409::1008"
Replace my-ipv6 variable with your own vhost, if you dont know it then simply run “vhost” command from the shell.
DCC will not work, you can use telnet instead. Just type “telnet localhost port” on your shell. You can set telnet listen port on eggdrop.conf just use “listen 8026 all”. 8026 is the port, please choise another one, coz this one can be used by another person.
Its possible that you will get this error after you tried to identify yourself to the bot. To resolve it please re-run bot without -m parameter and set pass. /msg bot pass password. Then you can connect to it via telnet.