[alicebot-general] Response order

Square Bear steve at square-bear.co.uk
Sat Feb 3 05:18:03 PST 2007


Use _ instead of * for the A$$ category. The underscore overrules everything
else including an exact match. This should do it:

 <category>
     <pattern>
         _ A$$
     </pattern>
     <template>
         <srai>
             BADWORD RESPONSE
         </srai>
     </template>
 </category>

Regards
- Steve Worswick (Square Bear)
http://www.mitsuku.com


----- Original Message ----- 
From: <alicebot-general-request at list.alicebot.org>
To: <alicebot-general at list.alicebot.org>
Sent: Friday, February 02, 2007 8:00 PM
Subject: alicebot-general Digest, Vol 15, Issue 2


> Send alicebot-general mailing list submissions to
> alicebot-general at list.alicebot.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://list.alicebot.org/mailman/listinfo/alicebot-general
> or, via email, send a message with subject or body 'help' to
> alicebot-general-request at list.alicebot.org
>
> You can reach the person managing the list at
> alicebot-general-owner at list.alicebot.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of alicebot-general digest..."
>
>
> Today's Topics:
>
>    1. Response order (Troy Vinson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 2 Feb 2007 09:24:53 -0600
> From: "Troy Vinson" <troy.vinson at dal.tribalddb.com>
> Subject: [alicebot-general] Response order
> To: <alicebot-general at list.alicebot.org>
> Message-ID:
> <CE0EF2903833E649AB736134C73E3C64039B6932 at TRBDALEXCH01.ddbdigital.com>
> Content-Type: text/plain; charset="us-ascii"
>
> In need of an AIML suggestion concerning ordering of a match or
> pre-scanning a sentence.  Given these two patterns:
>
> <category>
>     <pattern>
>         * FRIEND *
>     </pattern>
>     <template>
>         <srai>
>             FRIEND RESPONSE
>         </srai>
>     </template>
> </category>
>
> <category>
>     <pattern>
>         * A$$
>     </pattern>
>     <template>
>         <srai>
>             BADWORD RESPONSE
>         </srai>
>     </template>
> </category>
>
>
> And the input "my friend can kiss my a$$".  The desire is to have the
> pattern match and send a response for BADWORD RESPONSE instead of FRIEND
> RESPONSE.
>
> Any help would be greatly appreciated.
>
>
> ------------------------------
>
> _______________________________________________
> alicebot-general mailing list
> alicebot-general at list.alicebot.org
> http://list.alicebot.org/mailman/listinfo/alicebot-general
>
>
> End of alicebot-general Digest, Vol 15, Issue 2
> ***********************************************
>



More information about the alicebot-general mailing list