-
Set up Your City
@lunchy location Prague
-
Add Favorite Restaurants by searching it's name of meal
@lunchy add burger
-
Then List Daily Menus from your Favorites
@lunchy menus
-
Remove Restaurant from your Favorites
@lunchy remove Worst Restaurant Ever
I know, I know, I'm not the smartest AI you've ever met :)
- Git
- Heroku or similar cloud platform
- Redis data store
- Zomato API key
- Slack
Full setup can be done in 10 min! And it's FREE.
% git clone https://github.com/wzoom/lunchy.git
Login and create Heroku app first. If you don't have Heroku account, please see the detailed how-to: deploy Hubot to Heroku
% heroku login
% heroku create lunchy-for-myteam
📘 Instead of lunchy-for-myteam you can choose whatever name you like. Just leave it out, if you don't care, the heroku subdomain name will be auto-generated.
% git push heroku master
Redis is a crucial part of Lunchy, as it stores all downloaded daily menus and team's favorite restaurants. Lunchy can quickly access desired information this way.
% heroku addons:create rediscloud:free
📘 Note: REDISCLOUD_URL
environment variable is created and set on heroku at this point.
You have to login to Zomato with your account and then create API key. Finally fill the environment variable ZOMATO_TOKEN
with the key.
% heroku config:add ZOMATO_TOKEN=...
We are almost there...
-
Add Add Hubot App Integration to your Slack account. 📘 Note: Hubot is a bot framework that Lunchy is built upon.
-
Choose username: lunchy
-
Copy the API Token
-
Set the API Token to environment variable
HUBOT_SLACK_TOKEN
:% heroku config:add HUBOT_SLACK_TOKEN=...
🚧 TODO: More description will be added...
You can keep Lunchy online during the usual workday of your team, or just during the lunch-time.
% heroku addons:create scheduler
% heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=... # "Web URL" from: heroku apps:info
% heroku config:set TZ=Europe/Prague # Following times are coupled with the Timezone
% heroku config:set HUBOT_HEROKU_WAKEUP_TIME=9:00
% heroku config:set HUBOT_HEROKU_SLEEP_TIME=17:00
Do you have something to say? I'm all yours! Let me know what you think, eg. file Feature Request or a Bug.
You can test your hubot by running the following, however some plugins will not behave as expected unless the environment variables they rely upon have been set.
You can start lunchy locally by running:
% bin/hubot
You'll see some start up output and a prompt:
[Sat Feb 28 2015 12:38:27 GMT+0000 (GMT)] INFO Using default redis on localhost:6379
lunchy>
Then you can interact with lunchy by typing lunchy help
.
lunchy> lunchy help
lunchy lunchy add <restaurant>
lunchy help - Displays all of the help commands that lunchy knows about.
...
You may want to get comfortable with heroku logs
and heroku restart
if
you're having issues.