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

Commit 21942ef

Browse files
author
Lucas Willering
committed
Updated instructions
1 parent 6daac94 commit 21942ef

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Create a new Slack app here: [https://api.slack.com/apps](https://api.slack.com/
1414

1515
On the page that appears, scroll to the bottom of the screen and copy the 'Signing Secret'. You will need it later when you deploy the connector.
1616

17-
### Add bot user
18-
In the left navigation menu under 'Features' choose 'Bot Users' and add a bot user. You might also want to turn on 'Always Show My Bot as Online'.
17+
## Add Bot Token Scopes
18+
In the left navigation menu under 'Features' choose 'OAuth & Permissions'. Scroll down until you see 'Scopes'. Under 'Bot Token Scopes' click the 'Add an OAuth Scope' button. In the field that appears type 'chat:write'
1919

2020
### Install App to Workspace
21-
In the left navigation menu under 'Settings' choose 'Install App'. Click the 'Install App to Workspace' button and authorize. Copy the 'Bot User OAuth Access Token', you will need it in the next step when you deploy the connector.
21+
Still on the 'OAuth & Permissions', scroll back to the top and click the 'Install App to Workspace' button and authorize. Copy the 'Bot User OAuth Access Token', you will need it in the next step when you deploy the connector.
2222

2323
### Deploy the connector
2424
Click the button below to deploy the connector to Heroku:
@@ -38,6 +38,7 @@ 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'
4142
3. Under 'Subscribe to Bot Events', subscribe to the following event: `message.im`
4243
4. Save changes
4344

package-lock.json

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@artificialsolutions/tie-api-client": "^1.3.1",
1818
"@slack/client": "^4.3.1",
1919
"@slack/events-api": "^2.0.0",
20+
"dotenv": "^8.2.0",
2021
"express": "^4.16.4"
2122
}
2223
}

0 commit comments

Comments
 (0)