home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
comm
/
bbs
/
clchat414.lha
/
CLChat414
/
ChatBot
/
ChatBot.Doc
< prev
next >
Wrap
Text File
|
1995-12-25
|
7KB
|
201 lines
***********
* ChatBot *
***********
- THE Bot for your ClChat System -
Disclaimer
==========
Chatbot is run at your own risk. There are no warranties given with the bot,
expressed or implied. This piece of software has not been found to cause any
destructive behaviour on any system it's been tested on.
What's a BOT?
=============
A bot is a piece of software that is intended to loosely resemble a human being
on the IRC or ClChat networks. Since we're only referring to the ARCNet and
other ClChat networks here, we won't be mentioning the IRC again.
The bot serves several uses - it can automatically op certain users when they
join a particular channel, it can act as a gateway between users and your
system by running AmigaDOS commands, it can generally make channel and server
operators lives easier. Bots can also provide a lot of background noise. Why
anyone would want to setup their bot to do this is unknown.
ChatBot
=======
ChatBot is a bot for ClChat systems only. Attempting to make it work with the
IRC is futile at this point. If you're running a ClChatServer, the command
line options for chatbot are as follows:
ChatBot [HOST <hostname>] [PORT <port #>] <nickname> <realname> [channel to
join] [Config Directory] (all on one line)
or, the AmigaDOS template is :
ChatBot Host/K,Port/K/N,Nick/A,Realname/A,Channel=Autojoin/K,Dir=CFGDir/K
The server/port is an optional argument. The default action is to connect to a
server on the host machine ChatBot is being run on. You MUST include the HOST
(and PORT, if needed) keyword(s) when using them to connect to a remote host.
The channel for chatbot to join is an optional argument. The default
channel for chatbot is MAIN.
The config directory is the last optional argument. The default config
directory for ChatBot is S:
It is advisable to run >nil: chatbot unless you really want everything chatbot
'sees' to be dumped to the CLI you fire it up from.
When chatbot fires up, it looks in the config directory for chatbot.cmds,
chatbot.patterns, and chatbot.users.
If all goes well the bot should appear in whichever channel you've told it to
move into, and the bot on its own has some default commands:
status - Shows your status or access level with the bot.
version - Shows chatbot's version.
uptime - Shows how long chatbot has been running for.
quit - Logs the bot off of chat and quits. (Status 90 required)
reload - Forces the bot to reload it's configuration files. (Status 90 req'd)
shutup - Keeps chatbot from responding to chatbot.patterns.
talk - Re-Allows chatbot to respond to patterns in chatbot.patterns.
seen - Chatbot keeps track of the users that join and leave while running,
and using "seen <username>" will show the last time chatbot saw that
user online.
msg - msg will allow you to send a message to a user who is not currently
online, which chatbot will privately deliver as soon as chatbot sees
the user again. USAGE: "msg <username> <message>"
Chatbot.Cmds
============
This is a text file that allows you to add commands to the bot complete with
access level for each command. Each line of the file should contain one
command, access level, and AmigaDOS command to execute. A "%s" on the line
will be replaced with any flags that are given to the bot along with the
command. A "%n" on the line will be replaced with the name of the user that
issued the command to the bot. The format of each command line is :
CommandName Minimum-Access-Required AmigaDOS-Command-To-Be-Executed
Have a look at the supplied example Chatbot.Cmds file to get a good
understanding of how the commands are laid out.
ChatBot.Users
=============
This text file allows you to define access levels for users that chatbot may
run into while in ClChat. The access levels determine which chatbot commands
they may use, and also determines whether the user will be op'ed by the bot
when they enter the channel the bot is sitting in. The format of each line of
this file is :
UserName Access-Level Auto-Op-Flag Optional-Text
The Username may contain AmigaDOS wildcards. The Access Level is a number
between 0 and 99. The Auto Op Flag is either Y or N. The Optional Text is
displayed publically whenever the specified user joins the channel the chatbot
is in.
Again, have a look at the supplied example ChatBot.Users file to get a good
understanding of it.
ChatBot.patterns
================
This text file allows you to give the chatbot a particular action when it
receives the specified text publically. It can give some sort of really
horrible "Artifical Intelligence" sense to your bot - or it can make for quite
a nuisance. At any rate, the format for each line in this file is :
Pattern-to-Match AmigaDOS-Command-To-Execute
The pattern to match is any AmigaDOS type pattern, and for most things you will
want the command it executes to be an AmigaDOS Echo command.
The supplied example ChatBot.Patterns file gives good examples of how this
works.
SendChatBot
===========
SendChatBot allows you to have the bot emit strings from script files or at
specified times. This can cause for more annoyances, but can be rather cute,
too.
CLI Usage is : SendChatBot <BotNickName> <text>
SendChatBotFile
===============
SendChatBotFile allows you to set up your bot to send files via DCC.
CLI Usage is : SendChatBotFile <BotNickName> <File Recipient> <Filename> [DCC
Command] (All on one line)
If you put this in your Chatbot.cmds file, you'll want to RUN SendChatBotFile,
otherwise it will tie up the bot for the entire transfer.
For example, your entry might be :
get 0 run SendChatBotFile MyBot %n BotFile:%s DCCDir:DCC.SEND.AS225
Copyright
=========
ChatBot is Copyright (C) 1994-1995 Oliver Wagner, All Rights Reserved.
ChatBot may be distributed freely as long as it is distributed with the
ClChat System as a whole archive, and the files are not modified in any way.
Bugs
====
Please send bug reports, suggestions and comments via E-Mail to
o.wagner@lsd.wupper.de.
Updates
=======
Updates are placed on AmiNet, and can also be downloaded via anonymous FTP
directly from pluribus.wupper.de. You can also check out anonymous FTP at the
servers listed in the ARCnet reference if they have a better link to your host.
Credits
=======
- Credit must go to Oliver Wagner for creating the ClChat System and AMIRC
(two packages I use regularly). We're awaiting anxiously (but patiently) for
Connectline, Olli! Keep up the good work!
- Adam Clark for hours and hours of testing.
- Laurence Walton for hours and hours of testing.
This document was put together by Adam Clark (aclark@direct.ca).