Rendered 2008-08-30 23:42:46
common-lisp
trivial-irc
A trivial echobot.
The echobot will echo all messages sent to it, or to any channel it's in.
This is meant as a simple example of how to use the trivial-irc
library. To give it a sping, customize the variables in echobot.lisp,
and do something like this:
;; (asdf:oos 'asdf:load-op :trivial-irc-echobot) ;; (trivial-echobot:start)
Note that you probably don't want to make it join a channel someone actually uses, as it's quite annoying.
A list of channels to after registering with server.
The current echobot
.
Nickname of the echobot
.
The port to connect to.
The server to connect to.
A simple irc-bot that echoes anything it sees.
Valid initargs are the same as for trivial-irc:client
.
Receive messages until interrupted.
Set up echobot, bind it to *echobot*
and enter the receive-loop
.
Stop and disconnect
the echobot.