Skip to content

Commit

Permalink
Add .env
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Dec 8, 2016
1 parent 8848936 commit 27b90b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=
13 changes: 13 additions & 0 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
],
];
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 27b90b8

Please sign in to comment.