alt.irc.bots.eggdrop FAQ BarkerJr - bark_jr@hotmail.com Last Updated: December 21, 2001 Suggestions, corrections, updates, etc. may be posted to alt.irc.bots.eggdrop or emailed to the above email address. ------------------------------ Subject: 1. About alt.irc.bots.eggdrop Created: Saturday, February 25, 1995 5:23 AM Description: Eggdrop IRC-Bot discussion/announcements Reason: For discussion, upgrades, patch releases and announcements of the EGGDROP irc bot (currently +75 bots online EF). ------------------------------ Subject: 2. Table of Contents 1. About alt.irc.bots.eggdrop 2. Table of Contents 3. My bot will not respond to DCC (new) 4. I Need a Bot in my Channel 5. I Keep Getting "Can't determine your hostname!" 6. My Bot Keeps Quiting "Excess Flood" 7. My bot won't start, I just says "Memory table full" 8. Sometimes my bot doesn't recognize users with long nicks (updated) 9. Accented/special chars on Eggdrop/Tcl 8.2+ 10. TCL variables with dashes in them don't work 11. Square brackets [] do not work in the config (new) 12. The bot removes bans two hours after they are set (new) ------------------------------ Subject: 3. My bot will not respond to DCC (new) mIRC's DCC will often not work if you're behind a firewall. Try: /ctcp chat This should work, if your bot is not firewalled and it has a listen port. If that doesn't work, you'll need to forward ports for mIRC. ------------------------------ Subject: 4. I Need a Bot in my Channel *.eggdrop does not provide EggDrops for people that want them. If you really need a bot in your channel, invest in a shell and run a bot. Shells can cost as little as 12 USD or even 5 USD. ------------------------------ Subject: 5. I Keep Getting "Can't determine your hostname!" Your bot can not auto determine its IP address and hostname. At the top of your config (eggdrop.advanced.conf, eggdrop.complete.conf, eggdrop.simple.conf, or eggdrop.conf.dist) is: #set my-hostname "" You need to change remove the comment (#) and add your hostname if your hostname doesn't change (replace the "sub.sub.topdomain.com" with your domain): set my-hostname "sub.sub.topdomain.com" or if your hostname changes: set my-hostname "localhost" ------------------------------ Subject: 6. My Bot Keeps Quiting "Excess Flood" Contributed by Eugene Edit (vi, pico, etc) src/mod/server.mod/server.c Change msgrate from default (2) to higher values. Example: #define msgrate 5 Run make again. advantage: no more exess floods disadvantage: queues are processed a bit slow that the bot needs about 10 minutes to preocess all its queues when it connectes the server. ------------------------------ Subject: 7. My bot won't start, I just says "Memory table full" Contributed by simple I had the same problem a while back. I bet you have a LARGE userfile, like me. About 2500 users? In mem.c there is a line that has the number 25000. change it to 75000 and remake your bot. good luck! ------------------------------ Subject: 8. Sometimes my bot doesn't recognize users with long nicks (updated) 1.5.x and newer Add to your conf: set nick-len 30 or whatever your network's limit is. 1.4.x and older Edit src/eggdrop.h and fine the line defining NICKMAX. To the right of NICKMAX is the number 9. Replace the 9 with 30 or whatever your network has their nickname limit set to. WARNING: All bots on a botnet (linked) must have HANDLEN set to the same value as all the other bots. With that in mind, it is not recomended that you edit HANDLEN; only edit NICKMAX. ------------------------------ Subject: 9. Accented/special chars on Eggdrop/Tcl 8.2+ Contributed by Jim Hoyle 1) create a file in pico where you write a line: "" or whatever chars you need. 2) read the file, something like this: set ae [string index $get_the_line_first 0] set AE [string index $get_the_line_first 1] 3) a proc for converting the result proc *finalizer { fstring } { global ae AE set temp 0; set final "" while { $temp < [string length $fstring] } { if { [string index $fstring $temp] == "," || [string index $fstring $temp] == "" } { set final $final$ae } elseif { [string index $fstring $temp] == "" || [string index $fstring $temp] == "" } { set final $final$AE } else { set final $final[string index $fstring $temp] } incr temp } return $final } ------------------------------ Subject: 10. TCL variables with dashes in them don't work Variables with dashes (such as: $default-port) just read the first half then give errors (such as: TCL error: can't read "default": no such variable). To read variables with dashes, call on them within brackets (like: ${default-port} ). ------------------------------ Subject: 11. Square brackets [] do not work in the config (new) TCL, the config parser, interprits text between square brackets as commands. It will try to execute whatever text is between them. If you need brackets in your config, 'escape' them with a backslash (\). e.g. \[TAG\]whatever for [TAG]whatever ------------------------------ Subject: 12. The bot removes bans two hours after they are set (new) Look in your config for a line starting with "set ban-time". If you do not see it, add it to the bottom (it doesn't hurt to have it twice). Set it to 0 (set ban-time 0) and the bot will never remove bans. Set it to any other value and the bot will remove bans after that many minutes.