jacekelgda / create-slack-app

Create Slack App
MIT License
2 stars 0 forks source link

Generating slash command route #2

Open jacekelgda opened 6 years ago

jacekelgda commented 6 years ago

When configuring Custom Slash Command for my team, I need to provide URL

To simplify things we can assume right now that for one slash command we provide one endpoint. In case multiple slash commands will be configured to one backend - we will provide multiple endpoints.

API endpoint should be printed out ( after CLI Generator runs ) to paste into slash command configuration page on slack.

Code wrapper should be generated for that api route with generic responses. For example, just after configuration, I should be able to run new slash command in my chat window and get response:Your new slash command is configured properly. Head over to your app and add logic.

jacekelgda commented 6 years ago

How to create custom integration: Go to https://${your-team}.slack.com/apps > Manage > Custom Integrations > Slash Command > Add Configuration.

jacekelgda commented 6 years ago

(This might need to be required somewhere)Note: This has become a legacy functionality. Current way of creating slash command requires creating a slack app, but we chose this way because of it's simplicity. To see how to create a app with slash command go to other topic. https://api.slack.com/tutorials/your-first-slash-command