Skip to content

sahilda/the-truck-stop-sf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Truck Stop SF plugin

A simple app that responds to Slack commands with today's menu for the Truck Stop SF http://www.truckstopsf.com/ and Parklab https://www.parklabjunction.com/.

USAGE:

Slack:

Add to Slack

Or in the Slack store.

There are three different commands:

  • /trucks-help - get help
  • /parklab - get today's Parklab menu
  • /truck-stop - get SF Truck Stop's menu

Demo:

https://www.useloom.com/share/39e3f42a49fa456c831d849ae8c8d2eb

TODOs:

  • Extend it to work on all Slack rooms (done)
  • Change the 'location' sub command to return an image
  • Make it work with HipChat
  • Modify the message to add line breaks between trucks (done)
  • Modify the script to check current SF time instead of system time (set to PST, so no daylight savings is taken into account, but good enough)
  • Enhance the message to add links to each truck's website (done)
  • Handle the case where their website is not updated with this week's menu (done)

Testing / Self installation:

  1. Setting up environment.rb - look at environment.rb.sample for an example.
  2. Running the following: nohup ruby lib/webServer.rb &> /dev/null & or ruby lib/webServer.rb.
  3. Test the app using curl commands:
curl -XPOST localhost:4567/slack/trucks -d "command=/truck-stop"
curl -XPOST localhost:4567/slack/trucks -d "command=/parklab"

Credits:

Contact / Help:

About

A Slack plugin for Food Trucks!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages