A Slack integration intended to help its users collaborate on places to get lunch
You can find an article I've written on ideology behind LunchTrain here -> http://clypd.com/staying-on-track-for-lunchtime/
Usage (from within Slack, presumes set up with /train as the slash cmd):
/train help
Displays the help
/train start <Duration (int, minutes)>
Starts a train to that leaves in mins
/train join
Joins a train going to the specified destination
/train active
Reports a list of all the active trains and the time left on them
Changelog from the HipChat version:
- No more /train passengers (felt it was deprecated)
Deployment setup notes: I'm still working on a proper deployment where it pulls the appropriate Slack webhook URL from an Environment URL, but for now this'll probably be fine
-
Clone the repo and replace the 'webhook_url' variable with the URL from the previous step (found at Train.py, line 211). Deploy to Heroku
-
Go to https://TeamName.slack.com/apps/build/custom-integration
-
Click "Add Slash Command"
-
Set the command to '/train' (or whatever you want)
-
Configure options as follows: URL: Heroku url from step 0, Method: POST, Name: 'LunchTrain', Emoji: 🚂 (I liked this one best)
-
Go back to https://TeamName.slack.com/apps/build/custom-integration
-
Click "Add Incoming Webhook"
-
Configure options to: Post to "Notwork" (or wherever), set Name and Emoji to the same as in Step 4. Copy the 'Webhook URL' somewhere