https://github.com/ghlps/ru-whatsapp
Sender for the RU Menu project, making possible to send messages to a WhatsApp Channel after receiving the data via AWS Lambda
https://github.com/ghlps/ru-whatsapp
aws aws-lambda baileys javascript
Last synced: 3 months ago
JSON representation
Sender for the RU Menu project, making possible to send messages to a WhatsApp Channel after receiving the data via AWS Lambda
- Host: GitHub
- URL: https://github.com/ghlps/ru-whatsapp
- Owner: ghlps
- Created: 2024-07-31T11:02:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-25T09:53:06.000Z (7 months ago)
- Last Synced: 2026-03-22T00:50:15.894Z (4 months ago)
- Topics: aws, aws-lambda, baileys, javascript
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RU WhatsApp
Send automated WhatsApp messages containing UFPR's University Restaurant (RU) menu using AWS Lambda and Baileys.
## Overview
This project is part of the [RU Menu](https://github.com/guimox/ru-menu) ecosystem, which includes:
- [RU Scraper](https://github.com/guimox/ru-scraper) - Menu data scraper
- RU WhatsApp (this project) - WhatsApp message sender
The bot sends daily menu updates to a WhatsApp channel, supporting both text-based menus and image menus.
## Features
- Automated WhatsApp message sending using Baileys
- MongoDB integration for session persistence
- AWS Lambda deployment
- Support for multiple RU locations
- Handles both text and image-based menus
- Includes dietary information icons (vegan, gluten-free, etc.)
## Project Structure
```
ru-whatsapp/
├── db/
│ └── mongo.js # MongoDB connection and auth state management
├── util/
│ ├── constants.js # Icons and day names mappings
│ ├── format.js # Message formatting utilities
│ └── util.js # Core formatting functions
├── index.js # Main Lambda handler
└── infra/
└── buildspec.yml # AWS CodeBuild configuration
```
## Related Projects
- [RU Menu](https://github.com/guimox/ru-menu) - Main project repository