Using TCL scripts to further enhance your eggdrop bot

Tcl is how you add features. Drop a .tcl in scripts/, source it, rehash. KIRE does not ship a script archive and does not bless a random filename as official.

Install a script

# from ~/botdir
# put the file in scripts/ (gunzip first if it is .tcl.gz)
# then at the bottom of botnick.conf:
source scripts/foo.tcl

foo.tcl is a placeholder — use the actual filename you dropped. Then on the partyline:

.rehash

Some scripts want a full .restart. If the partyline dies on rehash, the script threw — read the log.

Example lines already in the sample conf:

source scripts/alltools.tcl
source scripts/action.fix.tcl

Leave those unless you know you do not want them.

Trivia

Trivia is a Tcl script you source, not a KIRE product. Packs are question files. See Running trivia on your Eggdrop.

Do not

  • Do not paste 20 lines of script output into a channel
  • Do not source from /tmp or world-writable paths
  • Do not run a script you have not opened
  • AUP: max 2 IRC connections per shell to a given network — a script that hammers JOIN/MSG will get you killed faster than it will get you famous

Want the bot run for you instead? Managed eggdrop.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Setting up an Eggdrop (the short version)

SSH into your KIRE shell. Not telnet. Tcl and OpenSSL are already on the box. Current Eggdrop is...

Getting the Eggdrop Source Code

Get current Eggdrop from the Eggheads project. That is geteggdrop.com or ftp.eggheads.org. The...

Detailed Installation Instructions (Manual Install Method)

SSH into the shell. Tcl and OpenSSL are already there. Current Eggdrop is 1.9 / 1.10 from...

How to configure your eggdrop bot

Work in the install dir (~/botdir). Copy the sample, do not edit eggdrop.conf in place: cp...

Editing the botchk file to automatically restart your bot

Eggdrop daemonizes. Screen/tmux are for irssi/weechat, not the bot. Persist with crontab via...