I'm using Botman 2.0 and Codeigniter 3.1.6
Ngrok & FB Webhook setup successfully..
Did a simple hears & reply method, working good :
$this->botman->hears('foo','HelloWorld@handleFoo');
$this->botman->hears('hello',function($bot){
$bot->reply('bye~');
});
But when using Botman's conversation method, then Bot is not replying...my conversation code as below:
$this->load->library('BotConversations/OnboardingConversation');
$this->botman->hears('sup', function($bot) {
$bot->startConversation(OnboardingConversation);
});
// Listen
$this->botman->listen();
anyhow, I've follow Botman's Cache conf's guide to setup Cache via Codeigniter method
Below are some of my test files:
appreciate your help! thanks....
Everything works fine right now, I overlook on a simple syntax issue... updated my code as below :
$this->botman->hears('sup', function($bot) {
$bot->startConversation(New OnboardingConversation);
});