Game integrated with slack as slash commands.
-
npm install -
VERIFICATION_TOKEN enviromental variable must be set.
See: https://api.slack.com/docs/token-types#verification
NOTE: app uses verification tokens that are deprecated.
- CLIENT_ID enviromental variable must be set.
CLIENT_SECRET enviromental variable must be set.
See: https://api.slack.com/methods/oauth.access
- SOCKET_TOKEN enviromental variable must be set.
Used in server.stop.js
-
SSL must be setup. Currently it's hardcoded in
server.jsto look for:- key: '/etc/letsencrypt/live/zaimatsu.tk/privkey.pem'
- cert: '/etc/letsencrypt/live/zaimatsu.tk/cert.pem'
- ca: '/etc/letsencrypt/live/zaimatsu.tk/chain.pem'
-
MongoDb must be configured. Configure db endpoints in
hangmanConfig.json.
/hangman <PHRASE>
e.g.
/hangman GREAT AS CABBAGE
/hangman <LETTER/PHRASE>
e.g.
/hangman A
/hangman GREAT AS LATTICE
- sslOptions instructions
- extract ssl options to hangmanConfig
- server.stop.js instructions
- make SECRET_TOKEN optional
- github-webhooks.js instructions