Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 70f4196

Browse files
authored
Merge pull request #3 from artificialsolutions/develop
v1.2.1 Updated dependencies.
2 parents d30d308 + 6bb52b3 commit 70f4196

File tree

5 files changed

+258
-320
lines changed

5 files changed

+258
-320
lines changed

.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SLACK_SIGNING_SECRET=<your app id here>
2+
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN=<your App Secret token here>
3+
TENEO_ENGINE_URL=<your teneo engine url here>

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.2.1
2+
## 28-10-2020
3+
* Updated dependencies.
14

25
# v1.2.0
36
## 21-02-2020

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ If you prefer to run your bot locally, see [Running the connector locally](#runn
3838
Go back to your app on Slack. In the left navigation menu under 'Features' choose 'Event Subscriptions'. Then:
3939
1. Turn on Enable Events
4040
2. Enter the following URL in the Request URL field: `https://[yourherokuappname].herokuapp.com/slack/events` (replace [yourherokuappname] with the name of your app on Heroku)
41-
Note that the url ends with '/slack/event'
41+
Note that the url ends with '/slack/events', and that the connector is already running locally, or on Heroku, to avoid a 'Challenge parameter' error.
4242
3. Under 'Subscribe to Bot Events', subscribe to the following event: `message.im`
43-
4. Save changes
43+
4. Save changes. Reinstall the app, if recommended by the dashboard
4444

45-
That's it! Your bot should now be available in Slack and responding to messages that are sent to it.
45+
That's it! Your bot should now be available as an app in Slack and ready to respont to the messages sent to it.
4646

4747
## Adding message attachments
4848
To add [message attachments](https://api.slack.com/docs/message-attachments), this connector looks for an output parameter `slack` in the engine response. The value of that parameter is assumed to contain the attachement JSON as defined by Slack.
@@ -65,7 +65,12 @@ If you prefer to manually install this connector or run it locally, proceed as f
6565
```
6666
ngrok http 3000
6767
```
68-
4. Start the connector with the following command (replacing the environment variables with the appropriate values):
69-
```
68+
4. Create a file called .env in the project's root folder, based on the sample file called '.env.sample' that is included in the project. Inside .env, replace the environment variables with the corresponding values:
69+
```
7070
SLACK_SIGNING_SECRET=<your_slack_signing_secret> SLACK_BOT_USER_OAUTH_ACCESS_TOKEN=<your_slack_bot_oauth_token> TENEO_ENGINE_URL=<your_engine_url> node server.js
71+
```
72+
73+
5. Start the connector with the following command:
74+
```
75+
node server.js
7176
```

0 commit comments

Comments
 (0)