Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/indentno/console-driver

Laravel explicit console driver for BotMan
https://github.com/indentno/console-driver

bot botman chatbot console-driver laravel laravel-command

Last synced: about 2 months ago
JSON representation

Laravel explicit console driver for BotMan

Awesome Lists containing this project

README

        

# console-driver [![Total Downloads](https://poser.pugx.org/sempro/console-driver/downloads)](https://packagist.org/packages/sempro/console-driver)
> Laravel explicit console driver for BotMan

### WIP

#### Installation
Install with composer
```bash
composer require sempro/console-driver
```

Navigate to ``config/app.php`` and add the following under providers
```php
\Sempro\ConsoleDriver\Providers\ServiceProvider::class
```

Publish assets (Console chat command)
```bash
php artisan vendor:publish --force --provider="Sempro\ConsoleDriver\Providers\ConsoleDriverServiceProvider"
```

Register command in ``app/Console/Kernel.php``
```php
protected $commands = [
App\Console\Commands\ConsoleChat::class
];
```

#### Usage
Send a message to the bot
```bash
php artisan console:chat "Your message here"
```

Send a message and log a message
```bash
php artisan console:chat "Your message here" --log
```

#### License
MIT © [Sempro AS](http://www.sempro.no)