Demo project
iNilo opened this issue · comments
iNilo commented
Is there any demo quick "setup" around that I can test?
<?php
require_once "bootstrap.php";
use BotMan\BotMan\BotMan;
use BotMan\BotMan\BotManFactory;
$config = [
'slack' => [
'token' => 'xxx',
],
];
// create an instance
$botman = BotManFactory::create($config);
// give the bot something to listen for.
$botman->hears('hello', function (BotMan $bot) {
$bot->reply('Hello yourself.');
});
// start listening
$botman->listen();
When adding a slack event-subscription it replies with:
Your URL didn't respond with the value of the challenge parameter.
Marc commented
The Slack Driver doesn't provide the Slack Event API Challange response
Marcel Pociot commented
Please load the driver manually before creating the BotMan instance:
DriverManager::loadDriver(\BotMan\Drivers\Slack\SlackDriver::class);
// Create BotMan instance
BotManFactory::create($config);