https://github.com/hugovk/lunchbot
Check what's for lunch at local restaurants and post to Slack
https://github.com/hugovk/lunchbot
bot lunch lunchbot slack slackbot
Last synced: 2 months ago
JSON representation
Check what's for lunch at local restaurants and post to Slack
- Host: GitHub
- URL: https://github.com/hugovk/lunchbot
- Owner: hugovk
- Created: 2017-03-11T09:35:19.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-07-07T21:28:48.000Z (3 months ago)
- Last Synced: 2025-07-08T00:30:38.078Z (3 months ago)
- Topics: bot, lunch, lunchbot, slack, slackbot
- Language: Python
- Size: 120 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lunchbot
[](https://github.com/hugovk/lunchbot/actions)
[](https://www.python.org/downloads/)
[](https://github.com/psf/black)Check what's for lunch at local restaurants and post to Slack
## Setup
```bash
python -m pip install --upgrade -r requirements.txt
```To post to Slack, get a [token](https://github.com/juanpabloaj/slacker-cli#tokens) and save it in the `LUNCHBOT_TOKEN` environment variable.
## Usage
```bash
# Just print out but don't post
python lunchbot.py --dry-run# Post to #lunch channel
python lunchbot.py# For testing, post to some username instead of the #lunch channel
python lunchbot.py --user username
```## Cron
For regular posting, you can use something like cron. For example, create /path/to/lunchbot.sh:
```bash
!/bin/bashexport PATH=/usr/local/bin:$PATH
export LUNCHBOT_TOKEN="TODO_ENTER_YOURS"python /path/to/lunchbot.py >> /tmp/lunchbot.log 2>&1
```And then run `crontab -e` and add this to post at 11:30am every workday (days 1-5):
```
30 11 * * 1-5 /path/to/lunchbot.sh
```