How dazbot13-max/dazbot-officiel works
DazBot is a Node.js WhatsApp linked-device bot. Users interact through WhatsApp commands and messages; index.js is the central runtime that handles status automation, dispatches features, and sends results back through the WhatsApp connection. Other major workflows recover deleted messages, schedule messages or statuses, and generate personality-based AI replies. The README also documents media downloads, group mentions, and website screenshots. The map follows documented capabilities and sampled module behavior; wiring for features whose dispatch code was not sampled is left out where uncertain.
Main entry points: index.js Bot runtime · scheduler.js Task scheduler · aiService.js AI service · downloaders.js Platform downloads
Components 18
WhatsApp runtime
- Bot runtime
index.js - Bot configuration
config.js
Automation features
- Status reactions
index.js - Deleted-message recovery
antidelete.js - Task scheduler
scheduler.js
AI replies
- AI service
aiService.js - Bot personality
personality.json
Media and tools
- Platform downloads
downloaders.js - Facebook download
facebook.js - Website screenshot
screenshot.js - Group mentions
tagall.js
Persistent state
- Scheduled tasks
scheduled_tasks.json - WhatsApp auth storage
supabaseAuth.js
Other components
- WhatsApp user
- AI providers
- Supabase
- Media services
Connections 26
- WhatsApp user → WhatsApp: sends commands
- WhatsApp → Bot runtime: delivers events
- Bot runtime → WhatsApp: sends replies
- Bot runtime → Bot configuration: reads settings
- Bot runtime → Status reactions: handles statuses
- Bot runtime → Deleted-message recovery: dispatches messages
- Deleted-message recovery → WhatsApp: sends reports
- Bot runtime → Task scheduler: manages tasks
- Task scheduler → Scheduled tasks: loads and saves
- Task scheduler → WhatsApp: sends scheduled posts
- Bot runtime → AI service: requests replies
- AI service → Bot personality: loads style
- AI service → AI providers: requests completion
- Bot runtime → WhatsApp auth storage: provides auth storage
- WhatsApp auth storage → Supabase: reads and writes session
- Bot runtime → Platform downloads: dispatches download
- Bot runtime → Facebook download: dispatches download
- Bot runtime → Website screenshot: dispatches capture
- Bot runtime → Group mentions: dispatches mentions
- Platform downloads → Media services: retrieves media
- Facebook download → Media services: retrieves video
- Website screenshot → Media services: requests capture
- Platform downloads → WhatsApp: sends media
- Facebook download → WhatsApp: sends video
- Website screenshot → WhatsApp: sends screenshot
- Group mentions → WhatsApp: sends mentions