A clojure app designed as a POC for an integration between Slack and Yelp for randomized lunch suggestions.
- Look in slack.clj for the placeholder for your slack bot's id
- Look in yelp.clj for the placeholders for your API credentials and location
- Update the location in Slack.clj or, ideally, update the code so that this is dynamic per user and persisted in a database location of your choice.
Setup:
- Be sure to review the Config section before attempting to run
Debug:
- Run
lein repl
from the command prompt in the project's directory - Type `(ns lunch-bot) to switch to the lunch-bot namespace
- Type
(require
lunch-bot.slack)` to connect to your slack instance as "Doris" - Interact with bot via slack (see slack.clj for recognized commands)
Normal Run:
- Run
lein run
Deployment:
- Run
lein jar
- Copy output jar file from target/ to wherever makes most sense for you (local dir, server, etc)
- Run
java -jar <output-jar-name>.jar
- Spin up database of some sort and store location per user so that Westlake isn't hard coded
- Pull Yelp connection information out to env variables
- Deploy properly somewhere
- Thread yelp callouts
- Unit tests
Copyright © 2016 Brick
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.