forked from AltusConsulting/Spark-Broadcast-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a parameter to specify the domain the bot will accept messages …
…from
- Loading branch information
Rafael Campos
committed
Nov 2, 2017
1 parent
56c85b6
commit 57988d7
Showing
4 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ SECRET=Not that secret ! | |
# note that botkit automatically happens the path to the POST endpoint of your bot | ||
#PUBLIC_URL=https://960eeccc.ngrok.io | ||
|
||
# The domain the bot will accept messages from | ||
#[email protected] | ||
|
||
# Name used to create the webhook to register your bot against Cisco Spark | ||
# Defaults to 'built with BotKit (development)' | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ First things first. Go ahead and create a Bot Account from the ['Spark for devel | |
Click below to quickly deploy the bot to Heroku. You will need the following information: | ||
* Your Spark token | ||
* Your public URL (for a Heroku deployment this would be `https://{app-name}.herokuapp.com`, where `{app-name}` is the name you chose for your Heroku app). | ||
* The domain the bot will accept messages from, for example '@companyabc.com' or '@altus.cr' | ||
|
||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) | ||
|
||
|
@@ -38,13 +39,13 @@ From a bash shell, type: | |
> git clone https://github.com/AltusConsulting/Spark-Broadcast-Bot.git | ||
> cd Spark-Broadcast-Bot | ||
> npm install | ||
> SPARK_TOKEN=0123456789abcdef PUBLIC_URL=https://abcdef.ngrok.io SECRET="not that secret" node bot.js | ||
> SPARK_TOKEN=0123456789abcdef PUBLIC_URL=https://abcdef.ngrok.io SECRET="not that secret" [email protected] node bot.js | ||
``` | ||
If you're using Redis, this last command would be: | ||
|
||
```shell | ||
> SPARK_TOKEN=0123456789abcdef PUBLIC_URL=https://abcdef.ngrok.io SECRET="not that secret" REDIS_URL=redis://localhost:6379/1 node bot.js | ||
> SPARK_TOKEN=0123456789abcdef PUBLIC_URL=https://abcdef.ngrok.io SECRET="not that secret" REDIS_URL=redis://localhost:6379/1 [email protected] node bot.js | ||
``` | ||
|
||
From a windows shell, type: | ||
|
@@ -56,6 +57,7 @@ From a windows shell, type: | |
> set SPARK_TOKEN=0123456789abcdef | ||
> set PUBLIC_URL=https://abcdef.ngrok.io | ||
> set SECRET=not that secret | ||
> set [email protected] | ||
> node bot.js | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters