[pandorabots-general] Combining two inputs to get combined outputs.

Monigarr@Yahoo.com monigarr at yahoo.com
Sun Feb 25 09:47:44 PST 2007


<category>
    <pattern>GO HOME * CALL ME</pattern>
      <template>
          <srai>GO HOME</srai> 
          and 
         <srai>CALL ME</srai>
      </template>
  </category>
   
  <category>
   <pattern>GO HOME</pattern>
   <template>I am home</template>
</category>
   
  <category>
   <pattern>CALL ME</pattern>
   <template>Whats your phone number</template>
</category>
   
  

Dekadens <dekadens at gmail.com> wrote:
  Can somebody tell me how I can program my bot to deal with two
different subjects in one pattern to output two templates?

Example:

My bot has an answer for "Go home" and "Call me" ( Go home is "I am
home." and call me is "Whats your phone number" )

what I'm trying to do is to write a category for * and *

should somebody say "Go home and call me" I want the response to be
the two templates. So the reply SHOULD be "I am home and what's your
phone number".

In other words I want the bot to first reply to the first "*" and then
recognize that the second "*" is something else.

Can you help?
_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general at list.pandorabots.com
Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/



Best Wishes,
Monica Peters
I specialize in the Impossible!

Software Engineer for Hire
Phone: (613) 933-5987
Email: Monigarr at Yahoo.com
Website: Monigarr.com
Aim: AWindSpeaker
YahooMessenger: Monigarr
Calendar: http://calendar.yahoo.com/monigarr


This email and any attachments is intended only for the purpose of the addressee, and may contain confidential information that is subject to privilege, including solicitor-client privilege, the rights to which are expressly claimed and not waived. The contents hereof may not otherwise be distributed, copied, or disclosed. If you have received this email and/or attachments in error, please notify Monica Peters by telephone, (613.933.5987) email, (Monigarr at Yahoo.com) or in-person and ensure its immediate destruction.  Any dissemination or copying of this email and any attachments by anyone other than the party to whom it is intended is prohibited. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.pandorabots.com/pipermail/pandorabots-general/attachments/20070225/79b37b9c/attachment.html 


More information about the pandorabots-general mailing list