How ponyndo820/hc-bot-master_v2 works
This is an under-development, multi-device WhatsApp bot. The principal workflow is a WhatsApp message reaching the bot’s socket listener, being normalized and enriched, then routed through command handling to a reply or media action; database state is loaded at startup and persisted during operation. Documented and sampled capabilities include media conversion, Instagram and YouTube downloading, image search, games, and group-message handling. The excerpts do not show every command route, so only evidenced links are drawn; the HTTP status/process server is shown as a separate capability.
Main entry points: Hc.js Message commands · index.js Socket startup · message.js Message enrichment · igdl.js Instagram downloader
Components 15
Bot runtime
- Socket startup
index.js - Message enrichment
src/message.js - HTTP status endpoints
src/server.js
Command handling
- Message commands
Hc.js - Message and image helpers
lib/function.js
Media tools
- Media conversion
lib/converter.js - Instagram downloader
lib/igdl.js - YouTube downloader
lib/ytmp4.js
State and services
- Bot settings
settings.js - Persistent database
src/database.js
Other components
- WhatsApp users
- WhatsApp network
- Instagram download services
- YouTube
- Bot process manager
Connections 16
- WhatsApp users → WhatsApp network: sends messages
- WhatsApp network → Socket startup: delivers events
index.js - Socket startup → Persistent database: loads and saves
index.js - Socket startup → Message commands: dispatches messages
index.js - Message commands → Message enrichment: loads context
Hc.js - Message enrichment → Persistent database: reads state
src/message.js - Message enrichment → Bot settings: uses settings
src/message.js - Message commands → Media conversion: converts media
Hc.js - Message commands → Instagram downloader: downloads media
Hc.js - Instagram downloader → Instagram download services: requests downloads
lib/igdl.js - Message commands → YouTube downloader: downloads video
Hc.js - YouTube downloader → YouTube: fetches video
lib/ytmp4.js - Message commands → Message and image helpers: uses utilities
Hc.js - Socket startup → Bot settings: configures startup
index.js - Bot process manager → HTTP status endpoints: queries process
- Socket startup → WhatsApp network: sends replies