From 4c98b27e78f438fdfa844d698a8c0de0f1fd65ff Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 21 Aug 2003 02:45:43 +0000 Subject: [PATCH] whitespace and math help git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@804 c11ca15a-4712-0410-83d8-924469b57eb5 --- files/blootbot.help | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/files/blootbot.help b/files/blootbot.help index 99095f6..04072cd 100644 --- a/files/blootbot.help +++ b/files/blootbot.help @@ -6,7 +6,7 @@ main: I learn mainly by observing declarative statements such as "x is at http:/ action: This is used to override the usual response. "x is does the hokey-pokey". When asked about x, the bot does this "* blootbot does the hokey-pokey" -alternation: The || symbol in an entry causes an blootbot to choose one of the replies at random. "X is Y||Z" will produce "X is Y" or "X is Z" randomly. +alternation: The || symbol in an entry causes an blootbot to choose one of the replies at random. "X is Y||Z" will produce "X is Y" or "X is Z" randomly. author: oznoid (mailto:lenzo@ri.cmu.edu) is my original author. @@ -32,9 +32,21 @@ dollar variables: $who - nick of factoid requester corrections: If I come back with "...but x is at http://xx.xx.xx" or something like that, and you want to change the entry, use "no, x is at http://sdfsdfsdf". The "No," tells me to supercede the existing value. corrections: you can append stuff to a factoid with "also". "x is also at ..." +math: D: math expresions can be evaluated. This uses Perl syntax. +math: E: 1+1 +math: + - add +math: - - subtract +math: * - multiply +math: / - division +math: ** - to the power +math: pi - pi +math: & - and +math: | = or +math: ^ - xor + redirection: If a factoid x contains simply " see y", then when asked for x, I will deliver factoidor command result y instead. -reply: There is a special tag, , that is used to override the usual response. Usually, a response is "X is Y", but it can be made "Y" by making the entry "X is Y". +reply: There is a special tag, , that is used to override the usual response. Usually, a response is "X is Y", but it can be made "Y" by making the entry "X is Y". # now the commands... addressing: It is a good idea if I stay in REQUIRE mode so that I won't yell out random crap if I listen in too hard. Currently there is no way to turn this off on-the-fly. (REQUIRE mode requires me to be addressed by name if I am to respond) -- 2.39.5