Ive played around a bit and keep coming up with absolutely nothing, but has anyone seen or does anyone have a suggestion for where i might start this? basically what i want is a bot that picks up certain words put into shout by a user and gives predetermined responses
e.g
if i post in shout
User: hello
shout box would recognize the word "hello" and i would receive an automated response from bot
Bot: how are you
the problem is i dont know how to trigger it to even start
ive got a start on the response though
Code:
$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'Bot', 'how are you', '".get_date_time()."', '0')";
any help would be appreciated