Codeigniter - Botman - 对话方法不回复

Codeigniter - Botman - Conversations method not replying

我正在使用 Botman 2.0 and Codeigniter 3.1.6

Ngrok & FB Webhook 设置成功..

做了一个简单的收听和回复方法,效果很好:

$this->botman->hears('foo','HelloWorld@handleFoo');
$this->botman->hears('hello',function($bot){
    $bot->reply('bye~');
 });

但是当使用Botman's conversation method时,Bot没有回复...我的对话代码如下:

$this->load->library('BotConversations/OnboardingConversation');
$this->botman->hears('sup', function($bot) {
    $bot->startConversation(OnboardingConversation);
});
// Listen
$this->botman->listen();

无论如何,我已经按照 Botman's Cache conf 的指南通过 Codeigniter 方法设置缓存

以下是我的一些测试文件:

感谢您的帮助!谢谢....

现在一切正常,我忽略了一个简单的语法问题... 更新我的代码如下:

$this->botman->hears('sup', function($bot) {
    $bot->startConversation(New OnboardingConversation);
});