Skip to content

tomfa/slack-slash-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack slash commands

A simple dummy-server for using Slack slash commands against

Deploy

Deploy

  1. Deploy this app to heroku using the button above or host it online some other way. Note down its URL.
  2. Ensure it works, by seeing that it responds at https://my-heroku-app.herokuapp.com/weather (HTTPS required)
  3. Go to Slack apps and find Slash Commands
  4. Add a command, with URL pointing at on of the endpoints in the server above (e.g. https://my-heroku-app.herokuapp.com/weather)
  5. Change icon, name, command, autocomplete help text as you see fit
  6. Note down the Token for the Slash command. Add it to the environment variable SLACK_API_KEY on the server. On heroku, this can be done on Heroku dashboard, under your app > Settings > Config Variables
  7. Save your Slash command and test it in your slack channel by typing /your-command

If you need to accept multiple tokens (i.e. have multiple slash commands), separate them with ; in the environment variable SLACK_API_KEY

Releases

No releases published

Packages

No packages published