SLACK_TOKEN
envvar: Slack token including at leastgroups:read
,users:read
andusers:read.email
permissions.PORT
(optional, default:3000
) envvar: HTTP port for the server to listen toPRIZE_FILE
(optional, default:./samples/prizes.json
) envvar: static JSON file for prize data
Note that the corresponding bot should be invited to private channels before the token can be used to retrieve those.
$ npm install
$ node index.js
Listening at http://localhost:3000
And browse 😎!