Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit e8fd7b5

Browse files
authored
Remove leftover from WTA config
1 parent 5566084 commit e8fd7b5

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,48 @@ Use a slash command and a dialog to create a helpdesk ticket in a 3rd-party syst
1010

1111
## Setup
1212

13-
#### Create a Slack app
13+
### Create a Slack app
1414

1515
1. Create an app at [https://api.slack.com/apps](https://api.slack.com/apps)
1616
2. Add a Slash command (See *Add a Slash Command* section below)
1717
3. Navigate to **Bot Users** and click "Add a Bot User" to create one.
1818
4. Enable Interactive components (See *Enable Interactive Components* below)
19-
5. Navigate to the **OAuth & Permissions** page and add the following scopes:
19+
5. Navigate to the **OAuth & Permissions** page and make sure the following scopes are pre-selected:
2020
* `commands`
2121
* `bot`
22-
* `users:read`
23-
* `users:read.email`
24-
* `chat:write:bot`
2522
6. Click 'Save Changes' and install the app (You should get an OAuth access token after the installation)
2623

2724
#### Add a Slash Command
2825
1. Go back to the app settings and click on Slash Commands.
2926
1. Click the 'Create New Command' button and fill in the following:
3027
* Command: `/helpdesk`
31-
* Request URL: Your ngrok or Glitch URL + `/command`
28+
* Request URL: Your server or Glitch URL + `/command`
3229
* Short description: `Create a helpdesk ticket`
3330
* Usage hint: `[the problem you're having]`
3431

35-
If you are using Glitch, the Request URL should look like: `https://my-slash-comm-app.glitch.me/command`.
32+
If you did "Remix" on Glitch, it auto-generate a new URL with two random words, so your Request URL should be like: `https://fancy-feast.glitch.me/command`.
3633

3734

3835
#### Enable Interactive Components
3936
1. Go back to the app settings and click on Interactive Components.
40-
1. Set the Request URL to your server (*e.g.* `https://yourname.ngrok.com`) or Glitch URL + `/interactive`.
37+
1. Set the Request URL to your server or Glitch URL + `/interactive`.
4138
1. Save the change.
4239

43-
#### Run the app locally or [![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/slack-slash-command-and-dialogs-blueprint)
40+
41+
### Set Your Credentials
42+
43+
1. Set the following environment variables to `.env` (see `.env.sample`):
44+
* `SLACK_ACCESS_TOKEN`: Your bot token, `xoxb-` (available on the **OAuth & Permissions** once you install the app)
45+
* `SLACK_SIGNING_SECRET`: Your app's Signing Secret (available on the **Basic Information** page)
46+
2. If you're running the app locally, run the app (`npm start`). Or if you're using Glitch, it automatically starts the app.
47+
48+
#### Run the app
49+
4450
1. Get the code
45-
* Either clone this repo and run `npm install`
46-
* Or visit https://glitch.com/edit/#!/remix/slack-slash-command-and-dialogs-blueprint
51+
* Clone this repo and run `npm install`
4752
2. Set the following environment variables to `.env` (see `.env.sample`):
4853
* `SLACK_ACCESS_TOKEN`: Your bot token, `xoxb-` (available on the **OAuth & Permissions** once you install the app)
4954
* `SLACK_SIGNING_SECRET`: Your app's Signing Secret (available on the **Basic Information** page)
50-
3. If you're running the app locally, run the app (`npm start`). Or if you're using Glitch, it automatically starts the app.
55+
3. If you're running the app locally, run the app (`npm start`).
56+
57+
If you want to run it locally, I recommend creating a localhost tunnel with [ngrok](https://ngrok.com)!

0 commit comments

Comments
 (0)