Rendered 2008-08-30 23:42:46

The TRIVIAL-IRC-ECHOBOT package.

Uses

Description

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.

Variables

*channels*

A list of channels to after registering with server.

*echobot*

The current echobot.

*nickname*

Nickname of the echobot.

*port*

The port to connect to.

*server*

The server to connect to.

Classes

echobot (client)

A simple irc-bot that echoes anything it sees.

Valid initargs are the same as for trivial-irc:client.

Functions

receive-loop

Receive messages until interrupted.

start

Set up echobot, bind it to *echobot* and enter the receive-loop.

stop

Stop and disconnect the echobot.