RE: [Release] Answer Machine Plus v2.60(12/18/06)
hi. i'm trying to set up a script that says what you tell it...
this is what i've got so far:
receive: ^!say (.*)$
answer: $1
type: regex
but it spits out the whole thing, including the !say part, instead of just what's in the brackets.
anyone know how to get it to only match what's in the brackets?
----
ps: i think i found a bug.
receive: hey|hi|hola|hello
answer: hey|hi|hola|hello
type: word
flags: ignore case, first word, randomize if multiple answers
it replies to anything that contains one of those words. like "this" contains the word "hi", so it responds, even though it's set as "first word", and "word" not "fragment". either of those things should have stopped this, no?
for anyone interested, i found a workaround. change type to regex, and receive to
\b(hey|hi|hola|hello)\b
which will only match the whole word. or if you want it to only match it if it's the first word, put a ^ at the start.
This post was edited on 03-16-2007 at 05:10 AM by darkzerox.
|