botman: no answer, no exception
I just made like in tutorial
use Mpociot\BotMan\BotManFactory;
use Mpociot\BotMan\BotMan;
use Mpociot\BotMan\Storages\Drivers\FileStorage;
$token = 'MY-TOKEN';
$config = [
'facebook_token' => $token,
'facebook_app_secret' => 'MY-SECRET',
];
// $storage = new FileStorage(__DIR__);
// create an instance
$botman = BotManFactory::create($config);
$botman->verifyServices($token);
$botman->hears('foo', function ($bot) {
$bot->typesAndWaits(2);
$bot->reply('Hello World');
});
// give the bot something to listen for.
$botman->hears('.*', function (BotMan $bot) {
$bot->reply('Hello yourself.');
});
// start listening
$botman->listen();
I see in logs…that facebook made request to my address. but no answer appear. Also didn’t get anythng in error log.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (1 by maintainers)
I did. Atm i’m away from home. But I noticed, that Inside the FBDriver Object the received messege is empty. So it doesn’t fit any of ‘hears’ Later today I will post what I have log from there.