Chatbot-Alpha

 view release on metacpan or  search on metacpan

lib/Chatbot/Alpha.pm  view on Meta::CPAN


  // A Conversation Holder: Knock Knock!
  + knock knock
  - Who's there?
  & <msg> who?
  & Ha! <msg>! That's a good one!

  // A Conversation Holder: Rambling!
  + are you crazy
  - I was crazy once.
  & They locked me away...
  & In a room with padded walls.
  & There were rats there...
  & Did I mention I was crazy once?

  // Regexp Trigger Tests
  ~ i (would have|would\'ve) done it
  - Do you really think you <star1> done it?

  ~ i am (\d) years old
  - A lot of people are <star1> years old.

lib/Chatbot/Alpha/Tutorial.pm  view on Meta::CPAN


  // Knock-Knock
  + knock knock
  - Who's there?
  & <msg> who?
  & Ha! <msg>! That's a good one!

  // Rambling
  + are you crazy
  - I was crazy once.
  & They locked me away...
  & In a room with padded walls...
  & There were rats there...
  & I don't like rats.
  & Rats make me crazy!
  & Did I mention I was crazy once?

=head2 "That's"

As I mentioned above, the &HOLDER command is buggy. You can use what we call "that", which is an emulation
of AIML's <that> functionality. It's to give your bot a cure of its A.D.D.

testreplies.txt  view on Meta::CPAN


// A Conversation Holder: Knock Knock!
+ knock knock
- Who's there?
& <msg> who?
& Ha! <msg>! That's a good one!

// A Conversation Holder: Rambling!
+ are you crazy
- I was crazy once.
& They locked me away...
& In a room with padded walls.
& There were rats there...
& Did I mention I was crazy once?

// Regexp Trigger Tests
~ i (would have|would\'ve) done it
- Do you really think you <star1> done it?

~ i am (\d) years old
- A lot of people are <star1> years old.



( run in 0.563 second using v1.01-cache-2.11-cpan-49f99fa48dc )