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/.
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
https://www.useloom.com/share/39e3f42a49fa456c831d849ae8c8d2eb
- 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)
- Setting up environment.rb - look at environment.rb.sample for an example.
- Running the following:
nohup ruby lib/webServer.rb &> /dev/null &
orruby lib/webServer.rb
. - 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"
- Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
- For any help or questions, please email me at [email protected].