Skip to content

ElTav/LunchTrain-Slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LunchTrain V2

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

  1. 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

  2. Go to https://TeamName.slack.com/apps/build/custom-integration

  3. Click "Add Slash Command"

  4. Set the command to '/train' (or whatever you want)

  5. Configure options as follows: URL: Heroku url from step 0, Method: POST, Name: 'LunchTrain', Emoji: 🚂 (I liked this one best)

  6. Go back to https://TeamName.slack.com/apps/build/custom-integration

  7. Click "Add Incoming Webhook"

  8. Configure options to: Post to "Notwork" (or wherever), set Name and Emoji to the same as in Step 4. Copy the 'Webhook URL' somewhere

About

A (better) LunchTrain implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages