sempro/console-driver

Laravel explicit console driver for BotMan

1.0.2 2017-03-13 14:30 UTC

This package is auto-updated.

Last update: 2024-11-15 23:05:22 UTC


README

Laravel explicit console driver for BotMan

WIP

Installation

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
];

Usage

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

License

MIT © Sempro AS