|
|
6 éve | |
|---|---|---|
| scripts | 6 éve | |
| LICENSE | 6 éve | |
| README.md | 6 éve | |
| docker-compose.yml | 6 éve | |
| eggdrop.Dockerfile | 6 éve | |
| postgres.Dockerfile | 6 éve |
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:
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:
The script host.tcl requires the tool "host" that is part of the
bind tools. The tested version is:
The script maketiny.tcl requires the tool
wget or something compatible. The tested
version is:
The script qstat.tcl requires the tool
qstat. The tested version is:
85fbecb on Dec 1, 2018)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:
If you already have Eggdrop installed and configured, the basic setup of the scripts in this repository consists of the following steps:
source scripts/date.tclThis repository contains Dockerfiles to create custom images of Eggdrop and PostgreSQL, that are configured for the scripts in this repository. The Dockerfiles were tested with docker version 1:19.03.5. You can build the images with the following commands:
$ docker image build -t custom-eggdrop -f eggdrop.Dockerfile .
$ docker image build -t eggdrop-postgres -f postgres.Dockerfile .
You can run a test setup that uses these images with the docker-compose.yml
file in this repository. It starts an InspIRCd, an eggdrop-postgres, and a
custom-eggdrop container. You can deploy it with the following command:
$ docker stack deploy -c docker-compose.yml eggdrop-test
You can control your Eggdrop bot by attaching to the custom-eggdrop container.
For example, you can instruct your bot to join a channel (.+chan #channel)
and set channel flags to setup scripts in specific channels (.chanset #channel
+flag).
If you want to interact with your bot, you can run an IRC client like irssi and
connect to localhost:6667.