IPN Lunch Menu Bot
is an automated script that fetches the weekly lunch menu from IPN's bar, processes it using ChatGPT, and posts the formatted menu to a specified Slack channel every Monday.
- Automated Image Fetching: Downloads the weekly menu image from a specified Facebook URL.
- Image Processing with ChatGPT: Uses OpenAI's ChatGPT to extract and format the menu.
- Slack Integration: Posts the formatted menu to a designated Slack channel.
- Scheduled Execution: Runs every Monday using GitHub Actions.
- Python 3.10.x
- GitHub account
- Slack workspace and API token
- OpenAI API key
-
Clone the Repository
git clone https://github.com/yourusername/ipn-lunch-menu-bot.git cd ipn-lunch-menu-bot
-
Install Dependencies
pip install -r requirements.txt
-
Add API Keys to GitHub Secrets
- OpenAI API Key:
OPENAI_API_KEY
- Slack API Token:
SLACK_API_TOKEN
- OpenAI API Key:
The script is designed to run automatically every Monday via GitHub Actions. To trigger the workflow manually, you can use the workflow_dispatch
event in GitHub Actions.
- Image URL: Update the URL of the menu image in the
menu_publisher.py
script. - Slack Channel: Update the Slack channel ID in the
menu_publisher.py
script.
Contributions are welcome! Please see our contributing guidelines for more information.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions, feel free to open an issue or contact me at @rjvitorino.