slack command for getting movie info
$ git clone git@github.com:matiassingers/slack-movie.git && cd slack-movie
$ npm install
$ npm start
Your local copy should now be running at localhost:1337
.
$ heroku create
$ git push heroku master
$ heroku open
Alternatively, you can deploy your own copy with one click using this button:
See the Heroku documentation for more info about changing the configuration variables after deployment.
- Create a Slack incoming WebHook integration (settings aren't important, note the WebHook URL)
- Deploy your copy of
slack-movie
, and note your URL endpoint - Create a Slack slash command integration with default settings and use the URL endpoint from above (optionally note the token for extra security)
- Optional: Add autocomplete help text to Slack command:
The following environment variables needs to be set for the command to work, if you use the Heroku Button above it'll ask for these automatically.
SLACK_HOOK_URL
- Slack incoming WebHook URLUSERNAME
- Username to use when replying with the conversion result (default: movies)EMOJI
- Emoji icon to use when replying with the conversion result (default: 🎥)SLACK_TOKEN
- Additional security step: Slack slash command token for verification that the request came from your Slack team (not required)
- Figure out how to add Slack attachments
image_url
, would work really well with a movie poster
MIT © Matias Singers