Add a /choose
command to your workspace.
/choose
Choose one person from the current channel./choose 3
Choose three people from the current channel./choose 3 from #general
Choose three people from the general channel./choose 3 from @foo @bar @baz @qux
Choose three people of the four.
Go to the your Slack Apps web page.
- Create New app.
- Setup application.
- App Name: As you like.
- Development Slack Workspace: Select a workspace you want to install this app.
- Create App.
In the new application page:
- Select Slack Commands from Features menu.
- Create New Command.
- Setup new command.
- Command: /choose
- Request URL: Your Heroku application's URL.
- Short Description: e.g. "Choose some people".
- Usage Hint: e.g. "3 from #general".
- Escape channels, users, and links sent to your app: check
- Save.
In the application page:
- Select OAuth & Permissions from Features menu.
- Add channels:read permission in Select Permission Scopes.
Select OAuth & Permissions from Features menu:
- Install App to Workspace.
- Authorize.
In the application page:
- Select Basic Information from Settings menu.
- Note down Verification Token.
- Select OAuth & Permissions from Features menu.
- Note down OAuth Access Token.
In the Heroku application's settings page:
- Select Reveal Config Vars.
- Add Verification Token as VERIFICATION_TOKEN.
- Add OAuth Access Token as OAUTH_TOKEN.