A RESTful TrueSkill game tracker for WayBlazer pong
Hosted on Heroku.
To test the thing locally:
export MONGO=mongodb://localhost:27017
export DATABASE=pongbot
python app.py
The PORT will be set to 5000 automatically in dev mode.
This service isnt truely RESTful due to how Slack slash commands work.
- Everything is an http
POSTto the root of the service (http://myserver.com/). Content-Typeshould beapplication/x-www-form-urlencoded- Post body should be form data in k/v format. Only one parameter is required, currently:
text. Text is everything after the slash command in slack. For example:
User sends /pong add kevin
Body:
text=add kevin
You can test this using something like Postman or Advanced Rest Client in Chrome.