Lobotomi
Some code that will be an IRC-bot some day...
Lobotomi is a kind of IRC-bot written in C. It currently only sits in a channel and writes everything to stdout. The code is currently only a quick and really dirty hack. I repeat, though we are currently cleaning up the crap lobotomi is still a really dirty hack. Only use the latest version, if any.
Working stuff
- Sitting there and answering PINGs
- Answering CTCP requests (see below for configuration)
- Follows invites
- Will write anything on the main in-FIFO to the IRC-server
Installation
- make, make PREFIX=/usr install; binaries will be installed under /usr/bin
- make DEBUG=""; there will be some debug output
- make DIET=""; do not link against dietlibc
- [...]
Configuration
- run lobotomi with some network (lobotomi -n $IRCNET). This will leave you with most stuff created
- create ~/.lobotomi/$IRCNET and subdirectories
- mkfifo ~/.lobotomi/$IRCNET/fifos/in && mkfifo ~/.lobotomi/$IRCNET/fifos/out
- make the initial configuration, e.g. echo -n irc.leo.org > ~/.lobotomi/$IRCNET/server && echo -n mynick > ~/.lobotomi/$IRCNET/nick
- add to ~/.lobotomi/ircnet/channels all channels you want lobotomi to sit in, one per line
- optional, make ~/.lobotomi/ircnet/ctcp/RESPONSE for ctcp responses. Name the file after the response to answer, and give the content of the response in one line without linefeed, e.g. echo -n my version is 666 > ~/.lobotomi/ircnet/ctcp/VERSION
- optional, configure some more parameters in ~/.lobotomi/ircnet in the files port, ident, realname
Download
- Checkout using anonymous CVS; gets updated once per day
- cvs -d:pserver:cvs@cvs.pimp.lart.info:/cvs co lobotomi
- Version 0.4pre somewhat. Updated irregularly. That's the version we use to implement all the new bugs.
- lobotomi-0.4pre.tar.bz2
- Version 0.3. Most big errors produced when coding under drugs are fixed by now. There is still enough work to do for evaluating the responses from the server.
- lobotomi-0.3.tar.bz2
- Version 0.2. Get this version if you need something to laugh about.
- lobotomi-0.2.tar.bz2