![]() |
Stinky FingersNo Soap Radio!Now with BotBot Support!
|
If this is your first foray into the wide world of bots, look at your
finger. Open your cyborg.ipt
file with your favorite text editor (BBEdit, vim, Alpha, Microsoft Word...), and look for the word
"finger."
The language of Palace scripts is
called iptscrae. Rather
than throw a dictionary at you right off,
I suggest peering occasionally at the
official docs as we go along.
Okay, search for "finger"
in your Cyborg.ipt file. If you find code that looks like this:
{
; this is your FINGER information - replace the stuff in quotes with
; information about yourself.
"^<insert name>\x0d"
"<insert e-mail>\x0d" +
WHOCHAT PRIVATEMSG
} CHATSTR "finger" == CHATSTR ";finger" == OR
WHOCHAT WHOME == NOT AND IF
}
|
...then your finger stinks! That's a simple, plain-vanilla
Communities.com
cheap sheet metal finger. Your first task should be to change this
stuff, because having it in there makes you look like a weenie.
What is this finger stuff
anyway? It's provided as a way for other users to identify you,
and for you to identify them. It's in your INCHAT handler
that is, it runs when
someone else says something. In particular, when they say
"finger" or ";finger" to you, either as regular
text or a whisper. You will automatically whisper back to them
(WHOCHAT PRIVATEMSG translates into English as "Send the
preceding text as a whisper to whoever is chatting at me").
You can have just about any kind of
code in your "finger" response, from simply your name and
e-address, to any kind of complicated animation you can dream up. In
terms of looking like a dork, I'd actually suggest completely
removing your finger code over leaving it with that
"<insert e-mail>" hanging there!
Here's an
annotated version
of finger code made by the
BotBot (Notes following semicolons are considered comments
by iptscrae, and ignored when the script is running).
ON INCHAT {
whoFing GLOBAL
CHATSTR LOWERCASE lowchat = ; See Note #1
{
{
"\x3bfinger" WHOCHAT PRIVATEMSG ; #2, #7
} whoFing WHOCHAT == NOT IF ; #3
"@10,10 ^" ; #4
USERNAME & ; #5
": Conqueror of Scotland\x0d" &
"http://www.botzilla.com/house/" & ; #6, #8
WHOCHAT PRIVATEMSG
WHOCHAT whoFing = ; #3
} lowchat "finger" ==
lowchat "\x3bfinger" == OR ; #7
WHOCHAT WHOME == NOT AND IF
}
|
What're the differences?