Returns random option from given array of strings separated by white-space.
Usage: /random option1 option2 option3
- Clone to local
- Create Heroku application (Node.js)
- Push to Heroku:
git push heroku master(via Heroku toolbelt) - Set config variables in Heroku
heroku config:set APPLICATION_TOKEN=your-tokenheroku config:set APPLICATION_TEAM_ID=your-team-id
- Add custom command to Slack. Command: /your-command-name (or just /random), URL: http://your-app-name.herokuapp.com, Method: POST
- Start randoming!
Created with Node.js, Express and <3