How chiragjaju13/ncs-whatsapp-bot works
This is a daily tender-monitoring and WhatsApp alert bot. Its main workflow fetches tenders from MSEDCL and Mahatenders, filters them by Maharashtra district/taluka, compares them with a local archive, then sends grouped new or updated alerts through Evolution API. The README also documents randomized message delays, dated run logs, and randomized daily scheduling. The sampled source is partial, so relationships not shown there are included only where the README explicitly describes them.
Main entry points: main.py Bot run · run_random.sh Randomized scheduler · tender_archive.json Tender archive · Datewise.txt Dated run logs
Components 18
Tender collection
- Bot run
main.py - MSEDCL scraper
main.py - Mahatenders scraper
main.py - MSEDCL tender API
- Mahatenders portal
Matching and tracking
- District matching
main.py - Tender change detection
main.py - Tender archive
tender_archive.json
WhatsApp delivery
- Alert formatting
main.py - Send delays
main.py - WhatsApp sender
main.py - Evolution API
- Evolution Postgres
Runtime operations
- Randomized scheduler
run_random.sh - Dated run logs
logs/Datewise.txt
Other components
- Daily cron
- MSEDCL WhatsApp group
- Mahatenders WhatsApp group
Connections 20
- Daily cron → Randomized scheduler: triggers daily
README.md - Randomized scheduler → Bot run: runs after delay
README.md - Bot run → MSEDCL scraper: runs scraper
README.md - Bot run → Mahatenders scraper: runs scraper
README.md - MSEDCL scraper → MSEDCL tender API: requests tenders
main.py - Mahatenders scraper → Mahatenders portal: searches tenders
README.md - MSEDCL scraper → District matching: matches location
README.md - Mahatenders scraper → District matching: matches location
README.md - MSEDCL scraper → Tender change detection: checks tenders
README.md - Mahatenders scraper → Tender change detection: checks tenders
README.md - Tender change detection → Tender archive: reads and updates
README.md - MSEDCL scraper → Alert formatting: formats alerts
README.md - Mahatenders scraper → Alert formatting: formats alerts
README.md - Bot run → WhatsApp sender: dispatches alerts
README.md - WhatsApp sender → Evolution API: posts messages
main.py - WhatsApp sender → MSEDCL WhatsApp group: sends MSEDCL batch
README.md - WhatsApp sender → Mahatenders WhatsApp group: sends Mahatenders batch
README.md - WhatsApp sender → Send delays: waits between sends
README.md - Bot run → Dated run logs: writes run log
README.md - Evolution API → Evolution Postgres: uses backing store
README.md