ewtoo-eliza_1.4/
ewtoo-eliza_1.4/Chatbot/
ewtoo-eliza
by silver@ewtoo.org
version 1.4

Requirements:

You need Perl and a UNIX box. Chatbot::Eliza is included in this archive.

Installation:

Copy ewtoo-eliza.pl to somewhere useful. Make sure it is executable with
the command:

   chmod +x ewtoo-eliza.pl

Edit it and set up the talker address and port, the bot name and password,
the owner name, attention span and chattyness. You also need to set the
"use lib" to point to the location of the "Chatbot" directory.

Attention span is how long the bot will listen to someone once they have 
its attention (usually by saying its name). If it is set at 2 then the 
next two comments they make will be parsed by the bot.

Chattyness is the 1 in x chance of it joining in the main conversation. 
The lower the more chatty it will be, but will probably piss a lot of 
people off. The higher the quieter.

You can use a template file to tailor the bots responses. Look on the net
for how this is done. If you use one, make sure its called
"<botname>-data.txt". So for a bot called "foo", its data file would be
called "foo-data.txt". If you don't use one, then the standard default
will be used.

Running:

You need a character on the talker already. Create one using the proper 
process (don't use "make"). Give it a username and password and set up 
everything else. Also make sure that wordwrapping is off, colour is off, 
the prompt is off and the pager is off ("wordwrap off", "linewrap off", 
"nopager", "prompt"). You want the bot to be able to see who echos stuff 
although it should cope without it on.

Type ewtoo-eliza.pl to run. What is seen by the bot is logged to the 
console, you may want to log this. You may also want to run this script 
under screen so when you log out it does not quit too.

If it doesn't work:

The code assumes that direct tells are of the format:

   >name tells you 'something'    or
   > name tells you 'something'

for example

   >Silver tells you 'hello there'    or
   > Silver tells you 'hello there'

if this is not the case then you may want to modify the regexp slightly to
take this into account. However "show tells" command may also toggle this 
on and off.

Hidden stuff:

If you are set up as the owner you can tell the bot the following:

  execute: <command>   - gets the bot to execute <command>
                         eg. "tell foo execute: say hello all!"

  hook: <name>         - get the bot to focus attention on <name>
                         eg. "tell foo hook: silver"

Disclaimer:

Don't blame me for anything. Use this at your own risk. Tell talker admins 
before you use it otherwise they may get pissy and nuke you (and the bot).


Finally:

The file "resort.txt" is a log of what happened when I put the bot (named 
as "sandy") onto resort.

See http://www.ewtoo.org/~silver/bots/eliza for the log online.

Problems? Questions? Email silver@ewtoo.org
Last updated: 16-August-2001