Enter people, get pizzas. Yep.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Godeps
vendor
.gitignore
.travis.yml
Procfile
README.md
badConfig.json
configRead.go
converter.go
icon.svg
main.go
main_test.go
sheetsClient.go
testConfig.json
web.go

README.md

People -> Pizzas

Travis CI status

People to Pizzas Icon

Take people and get pizzas.

Built because ACM@UC can't remember how many pizzas to buy for X people.

Setup

  1. You need Go to compile and run the app—this was written in 1.9.2.
  2. go get github.com/snyderks/people-to-pizzas
  3. Install dependencies using godep (deprecated, but required for Heroku).
  4. Create a file called config.json in the directory. Use testConfig.json for the format.
    • slack-token is a valid Slack API token.
    • sheets-key is a valid Google Sheets API token.
    • sheet-id is the spreadsheet ID of a public Google Sheet.
  5. Run tests with go test ./...
  6. go build
  7. Run the resulting executable.
  8. Set up the Slack slash command to take one parameter: a number.