Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 475 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 475 Bytes

Start by caching the photos locally (in Redis). This saves requests and speeds up response times:

$ ruby cache_photos.rb

To run the bot that responds to commands:

# set "mode" to "live" to use live credentials or leave it out to use test credentials
$ ruby run_bot.rb [mode]

To run the "time hop" service:

# set "mode" to "live" to use live credentials or leave it out to use test credentials
$ ruby timehop_bot_service.rb [mode]