diff --git a/.env.example b/.env.example index d445610..87ac99b 100644 --- a/.env.example +++ b/.env.example @@ -30,3 +30,13 @@ MAIL_ENCRYPTION=null PUSHER_APP_ID= PUSHER_KEY= PUSHER_SECRET= + +# BOTMAN SERVICE CONFIGURATION +HIPCHAT_URL= +MICROSOFT_APP_ID= +MICROSOFT_APP_KEY= +NEXMO_KEY= +NEXMO_SECRET= +SLACK_TOKEN= +TELEGRAM_TOKEN= +FACEBOOK_TOKEN= \ No newline at end of file diff --git a/config/services.php b/config/services.php index 4460f0e..d505003 100644 --- a/config/services.php +++ b/config/services.php @@ -35,4 +35,17 @@ 'secret' => env('STRIPE_SECRET'), ], + + 'botman' => [ + 'hipchat_urls' => [ + env('HIPCHAT_URL') + ], + 'microsoft_app_id' => env('MICROSOFT_APP_ID'), + 'microsoft_app_key' => env('MICROSOFT_APP_KEY'), + 'nexmo_key' => env('NEXMO_KEY'), + 'nexmo_secret' => env('NEXMO_SECRET'), + 'slack_token' => env('SLACK_TOKEN'), + 'telegram_token' => env('TELEGRAM_TOKEN'), + 'facebook_token' => env('FACEBOOK_TOKEN') + ], ]; diff --git a/readme.md b/readme.md index 743c5a5..6b9e2f7 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,7 @@ composer create-project mpociot/botman-laravel-starter my_new_bot 2. Install [Laravel Valet](https://laravel.com/docs/5.3/valet) and use `valet share` to retrieve a HTTPS URL that you can use in the messaging services for testing. The predefined route is `/botman`. -3. [Connect BotMan with your Messaging Services](https://github.com/mpociot/botman#connect-with-your-messaging-service) +3. Edit your `.env` file and [connect BotMan with your Messaging Services](https://github.com/mpociot/botman#connect-with-your-messaging-service) 4. Modify your bot logic in `app/Controllers/BotManController.php`