PHP Classes

File: app/replies.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  Talk to PHP Facebook Chat Bot  >  app/replies.php  >  Download  
File: app/replies.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Talk to PHP Facebook Chat Bot
Listen and reply to Messenger chat messages
Author: By
Last change:
Date: 2 years ago
Size: 1,234 bytes


Class file image Download


$replier->listen("i am {name}", "TalkAction@iAm");
$replier->listen("hello", "TalkAction@hello");
$replier->listen("how are you", "TalkAction@howAreYou");
$replier->listen("fine", "TalkAction@fine");
$replier->listen("who are you", "TalkAction@whoAreYou");
$replier->listen("are you female", "TalkAction@gender");
$replier->listen("where from you", "TalkAction@where");
$replier->listen("menu|show menu", "TalkAction@menu");
$replier->listen("thank you|thanks", "TalkAction@thanks");
$replier->listen("list", "TalkAction@lists");
$replier->listen("buy", "TalkAction@buy");
$replier->listen("lat: {lat} long: {lng}", "TalkAction@locations");

"show me your photo",
"your photo",
"send me your photo"
], "TalkAction@mePhoto");

"eid mubarak",
"wishing eid"
], "TalkAction@eid");

"i am from {country}",
"from {country}"
], "TalkAction@country");

"i am {name} from {country}",
"{name} from {country}"
], "TalkAction@identity");

"i born in {year}",
"i born {year}",
"born in {year}",
"born {year}"
], "TalkAction@born");

For more information send a message to info at phpclasses dot org.