How fazzrqy/xynzbot works
XYNZBOT is a WhatsApp bot whose plugins provide chat commands across administration, media, AI, entertainment, and utility features. Its main workflow is inbound WhatsApp events → message serialization → handler-based plugin dispatch → command execution and replies. The handler also loads per-message user and chat state from the JSON-backed database. The README only notes supported run environments; feature links for unsampled command modules are represented at their existing directories, and their individual integrations are not inferred.
Main entry points: handler.js Command handler · main.js Bot session · ai AI features · anime Anime features
Components 21
Bot runtime
- Process supervisor
system/index.js - Bot session
system/main.js - Message serializer
system/lib/serialize.js - Command handler
system/handler.js
Chat features
- Group administration
command/admin - Owner controls
command/owner - Bot commands
command/main - AI features
command/ai - Anime features
command/anime - Wattpad features
command/wattpad - User utilities
command/utility - Entertainment
command/fun
Media tools
- Media downloads
command/download - Media conversion
command/convert - Chat utilities
command/tools
State and plugins
- Plugin loader
system/lib/plugins.js - Database layer
system/lib/database.js - JSON state
External services
- External APIs
Other components
- WhatsApp user
Connections 36
- WhatsApp user → WhatsApp: sends messages
- WhatsApp → Bot session: delivers events
- Process supervisor → Bot session: starts process
- Bot session → WhatsApp: connects session
- Bot session → Message serializer: serializes messages
- Bot session → Command handler: dispatches events
- Bot session → Plugin loader: loads plugins
- Command handler → Database layer: loads message state
- Database layer → JSON state: reads and writes
- Command handler → Group administration: dispatches commands
- Command handler → Owner controls: dispatches commands
- Command handler → Bot commands: dispatches commands
- Command handler → AI features: dispatches commands
- Command handler → Anime features: dispatches commands
- Command handler → Wattpad features: dispatches commands
- Command handler → Media downloads: dispatches commands
- Command handler → Media conversion: dispatches commands
- Command handler → Chat utilities: dispatches commands
- Command handler → User utilities: dispatches commands
- Command handler → Entertainment: dispatches commands
- Group administration → WhatsApp: sends replies
- Owner controls → WhatsApp: sends replies
- Bot commands → WhatsApp: sends replies
- AI features → External APIs: requests AI services
- Anime features → External APIs: requests content
- Wattpad features → External APIs: searches stories
- Media downloads → External APIs: requests media
- Chat utilities → External APIs: fetches resources
- Media downloads → WhatsApp: sends media
- Media conversion → WhatsApp: sends converted media
- Chat utilities → WhatsApp: sends results
- User utilities → WhatsApp: sends replies
- Entertainment → WhatsApp: sends replies
- AI features → WhatsApp: sends replies
- Anime features → WhatsApp: sends replies
- Wattpad features → WhatsApp: sends replies