Noobie questions

View: New views
1 Messages — Rating Filter:   Alert me  

Noobie questions

by Ad-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry but this is giving me a headache, Ive been playing with it for a day
now and I'm getting some good output, but I have a couple of code questions.
I had a quick rake through the archives and its all way too technical at the
moment so I hope you dont mind me asking basic stuff here.

I am starting with an empty list.

1) If there is no answer in the aiml I want the bot to say nothing and give
no response but I keep getting blank lines coming up when random things are
entered that I have no pattern for yet. I tried

<category>
<pattern>*</pattern>
  <template/>
</category>

with no joy. Can this be done?


2) How do I stop it writing the full stop at the end of every line?


3)

<category>
<pattern>HOW ARE YOU</pattern>
<template>
  <random>
  <li>great</li>
  <li>fine</li>
  <li>could be worse</li>
  <li>good thanks</li>
  </random>
</template>
</category>

<category>
  <pattern>* HOW ARE YOU</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>

<category>
  <pattern>HOW ARE YOU *</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>

<category>
  <pattern>* HOW ARE YOU *</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>


Do I have to have all 3 srai codeblocks to cover all eventualities of things
like

hi how are you?
how are you today?
hi how are you today?

Or is there a simpler way to do this?



4) From above

_ HOW ARE YOU

seems to work just as well as

* HOW ARE YOU

Any real difference there?



Think thats all for now, im sure ill have another 10 questions by tomorrow.
Thanks for any help



_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general@...
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/