
examplebot - an example implementation of a talker robot

examplebot.plx [-t] [-u USER] [-p PASS] [-h HOST[:PORT]]
Additionally it expects to read the examplebot.cfg config file to determine other runtime options. The command line options override those in the config file, or you can put all options in the config file. The -t switch turns on tracing for extra fun debugging info.

This robot draws upon the Chatbot::TalkerBot core - it uses TalkerBot to connect to the remote host and then uses the listenLoop method to wait for input matching a regular expression. Some commands are handled by the TalkerBot object itself, but anything that can't be handled is passed to the callback function for further robot-application-specific processing.
In addition a regular interrupt is enabled which calls the callback at regular intervals to allow for asynchronous I/O and housekeeping tasks.

There's four sections - one for network details, one for the talker application, one for the bot's configuration, and one for commands.

$Id: examplebot.plx,v 1.7 2001/12/19 05:39:28 piers Exp $