eggdrop-scripts
This repository contains a collection of long-forgotten scripts for the
Eggdrop IRC bot. As a nostalgia project, they were
pulled from old backups, more or less rewritten and tested in a current Linux
environment. Some of the scripts are rather silly. So, please do not take them
too seriously.
Overview:
- auth.tcl: authenticate the bot with an authentication
service when connecting to a server.
- beer.tcl: give users in a channel a cold beverage.
- date.tcl: post the current date and time.
- funwar.tcl: post scheduled online gaming fun matches
retrieved from a SQL database.
- greetings.tcl: greet users that join a channel.
- help.tcl: post a help text.
- host.tcl: resolve IP addresses or host names with the
tool "host" and post the result.
- insult.tcl: generate random insults and post them.
- maketiny.tcl: generate tiny URLs and post them.
- match.tcl: store scheduled online gaming matches in a
text file and post stored matches.
- qstat.tcl: query the status of online gaming servers
with the tool "qstat" and post the result.
- topic.tcl: change the topic of a channel.
- watch.tcl: watch the online and offline status of users
and post status changes.
Requirements
All scripts are written for the IRC bot Eggdrop in the
programming language Tcl. The tested versions are:
The script funwar.tcl requires a PostgreSQL
server. Additionally, the script depends on the PostgreSQL library libpq to
connect to the PostgreSQL server. The tested versions are:
- PostgreSQL 12.1
- libpq 12.1
The script qstat.tcl requires the tool
qstat. The tested version is:
- qstat 2.15 (Pre-release: commit
85fbecb on Dec 1, 2018)
The script host.tcl requires the tool "host" that is part of the
bind tools. The tested version is:
You need an IRC server to test the bot with these scripts. You can use a public
one or run your own. The scripts were tested with the IRC server
InspIRCd. If you want to interact with the bot and
the scripts, you need an IRC client. The scripts were tested with the client
irssi. The tested versions are:
- InspIRCd 3.4.0
- irssi 1.2.2
Setup
If you already have Eggdrop installed and configured, the basic setup of the
scripts in this repository consists of the following steps:
- Copy the scripts you want to use from the scripts folder into
your Eggdrop's scripts folder
- Install the dependencies of the scripts (see above)
- If necessary, adapt the variables/code inside the scripts
- Enable the scripts in the scripts section of your Eggdrop's config file with,
e.g.,
source scripts/date.tcl
- (Re-)start your Eggdrop