Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

adding an array to a bot script

Name: Anonymous 2010-06-13 21:53

How can I make an array so I can give the same answer for multiple questions? Heres the original below is what I mean.
<?php

// Chat bot messages
if(stristr($text, 'help me'))
      {
// KEYWORDS TRIGGER START
    $this->insertChatBotMessage(
                    $this->getPrivateMessageID(),
"\nHow may I help you?\n" //This is what the chatbot says when the visitor enters help me anywhere in a sentence!
 );
}
?>


>Example of what I mean:
<?php

// Chat bot messages
if(stristr($text, 'help me, admin i need u, admin i need you, i am confused'))
      {
// KEYWORDS TRIGGER START
    $this->insertChatBotMessage(
                    $this->getPrivateMessageID(),
"\nHow may I help you?\n" //This is what the chatbot says when the visitor enters help me anywhere in a sentence!
 );
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List