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!
);
}
<?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!
);
}