How igimonsan/botnode3 works
This is a WhatsApp multi-feature bot. A user sends commands or media through WhatsApp; the bot routes requests to conversational AI, sticker and quote generation, or download capabilities, then replies in chat. Startup initializes the WhatsApp client and manages local download, temporary, and session directories. The excerpts show AI API calls, sticker processing, and Facebook/Instagram download logic, but not the full command dispatcher. YouTube and help/info features are documented but their implementations are not sampled, so their internal wiring is left unspecified.
Main entry points: whatsappClient.js WhatsApp client · index.js Startup and cleanup · aihandler.js AI chat handler · config.js Bot configuration
Components 18
Bot runtime
- Startup and cleanup
index.js - WhatsApp client
wa/whatsappClient.js - Bot configuration
config/config.js - WhatsApp session files
sessions - Downloaded files
downloads
Conversation
- AI chat handler
handlers/aihandler.js - Ferdev AI API
Media features
- Sticker maker
handlers/stickermaker.js - Brat sticker handler
handlers/bratsticker.js - Ferdev services
- TikTok downloader
tiktok/tiktokDownloader.js - TikTok category flow
service/whatsappservice.js - Facebook and Instagram downloads
wa/whatsappClient.js - YouTube downloads
wa/whatsappClient.js
Content features
- Quote generator
handlers/quote.js - Quote collection
handlers/daftarquote.js - Help and bot info
wa/whatsappClient.js
Other components
- WhatsApp user
Connections 21
- WhatsApp user → WhatsApp client: sends messages
- WhatsApp client → WhatsApp user: sends replies
- Startup and cleanup → WhatsApp client: initializes
- Startup and cleanup → Bot configuration: reads settings
- WhatsApp client → Bot configuration: reads settings
- WhatsApp client → WhatsApp session files: uses auth state
- Startup and cleanup → Downloaded files: manages files
- WhatsApp client → AI chat handler: creates handler
- WhatsApp client → Sticker maker: creates and calls
- WhatsApp client → Quote generator: creates handler
- WhatsApp client → Facebook and Instagram downloads: handles requests
- WhatsApp client → YouTube downloads: offers downloads
- WhatsApp client → Help and bot info: offers help
- AI chat handler → Ferdev AI API: calls API
- AI chat handler → Bot configuration: reads settings
- WhatsApp client → Ferdev services: requests downloads
- Brat sticker handler → Ferdev services: requests sticker
- WhatsApp client → Brat sticker handler: uses handler
- TikTok downloader → Downloaded files: writes videos
- TikTok category flow → TikTok downloader: downloads video
- Quote generator → Quote collection: reads quotes