Laravel explicit console driver for BotMan
Install with composer
composer require sempro/console-driver
Navigate to config/app.php
and add the following under providers
\Sempro\ConsoleDriver\Providers\ServiceProvider::class
Publish assets (Console chat command)
php artisan vendor:publish --force --provider="Sempro\ConsoleDriver\Providers\ConsoleDriverServiceProvider"
Register command in app/Console/Kernel.php
protected $commands = [
App\Console\Commands\ConsoleChat::class
];
Send a message to the bot
php artisan console:chat "Your message here"
Send a message and log a message
php artisan console:chat "Your message here" --log
MIT © Sempro AS