You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use App\Conversations\WorkingConversation;
use App\Conversations\ComplaintsConversation;
use App\Conversations\InstructionConversation;
use App\Conversations\CallServiceConversation;
use App\Conversations\VacationConversation;
use App\Conversations\InvoiceConversation;
use App\Conversations\ContactUpdateConversation;
use App\Conversations\BusinessOfferConversation;
use BotMan\BotMan\BotMan;
use Illuminate\Support\Facades\Log;
$botman = resolve('botman');
$botman->hears('{mess}', function ($bot, $mess) {
/** @var BotMan $bot */
Log::info('$bot mess >'.$mess.'<');
Log::info('$bot message >'.var_export($bot->getMessage(), true).'<');
Log::info('$bot driver >'.var_export($bot->getDriver(), true).'<');
Log::info('$bot matches >'.var_export($bot->getMatches(), true).'<');
$bot->reply('Hi!');
});
$botman->hears('Start', function ($bot) {
Log::info('botman hears start!!1');
$bot->reply('Hello!');
});
make a route Route::match(['get', 'post'], '/botman', 'BotManController@handle');
handle function
public function handle(Request $request)
{
/** @var BotMan $botman */
$botman = app('botman');
$botman->listen();
}
when i visit /botman/?driver=web&userId=111&message=Start the following is written to the log file
I am connecting botman to an existing project on laravel 5.8.
I installed botman and driver-web
added configs and botman routes
config/botman/config.php
config/botman/web.php
routes/botman.php
make a route
Route::match(['get', 'post'], '/botman', 'BotManController@handle');
handle function
when i visit /botman/?driver=web&userId=111&message=Start the following is written to the log file
I do not understand
Help me understand what the problem is, any ideas will be useful
The text was updated successfully, but these errors were encountered: