Here is your README content translated into English:
This is a WhatsApp bot project for promotion alerts developed in Node.js using the WhatsappWebJS library to interact with the WhatsApp API and Kafka for messaging.
This bot notifies and tracks product promotions via WhatsApp groups or polls. Developed in Node.js with the WhatsappWebJS library, it uses Kafka for messaging, Docker for containers, and PostgreSQL as the database.
Docker and a stable internet connection.
- Create a .env file at the root of the project with the following content:
POLL_URL='{{POLL URL}}' (if applicable) KAFKA_TOPIC=WHATSAPP-RESPONSES POLL_INTERVAL=300000 GROUP_ID=TEST-GROUP DB_USER={{DBUSER}} PASSWORD={{DATABASE_PASSWORD}} HOST=postgres DATABASE={{DATABASE}} - Start the WhatsApp bot:
docker compose up --build. - Scan the QR code displayed in the terminal using WhatsApp on your mobile device. 3.1 (Tip) If any of the QR code services do not work, you can restart only the respective container.
- Join groups to analyze messages or configure a POLL.
Contributions are welcome! Feel free to open an issue, submit a pull request, or even send a Pix :p.
This project is licensed under the MIT License.
Let me know if you’d like this saved directly into your README.md file or if you want any adjustments!