A serverless Slack Slash Commands to shuffle randomly a list of items, using Netlify functions.
- Install Netlify CLI
- Make sure your project is link at Netlify
$ netlify init
and follow instructions$ netlify dev --live
- Follow the Slack steps below
- Create an
.env
file and fill it with the properties of the.env.example
file.
To deploy the script on Netlify Functions :
$ netlify init
and follow instructions$ netlify build
$ netlify deploy
To install the Slack Slash Commands :
- Go to https://api.slack.com/apps/
- Click on
Create New App
- Click on `From an app manifest, and select your workspace
- Choose
JSON
tab, and copy/paste the data from./manifest.json
- Get URL from Netlify (dev/prod) and replace URL in
Slash Commands
andInteractivity & Shortcuts
- Click on
OAuth & Permissions
, view and copy the token (xoxb-XXXX
) to a temporary place. You'll need it later.