How nabilboubakri23-del/neo-bot works
NEO BOT is a modular WhatsApp assistant. Its main path is a WhatsApp message entering the bot, being normalized and routed through command parsing and access checks, then handled by a command or plugin that replies through WhatsApp. Separate capabilities cover moderation, media and downloads, AI, games, and automation. State is backed by configurable document storage, while authentication and encrypted session persistence support the connection lifecycle. The README documents the product branches; several implementation links below are documented capability relationships rather than inspected call sites.
Main entry points: commands Command capabilities · commandHandler.js Command engine · index.js Bot startup · messageHandler.js Message intake
Components 22
WhatsApp Runtime
- Bot startup
index.js - Connection lifecycle
core/connection.js - Authentication setup
core/authentication.js - Encrypted sessions
core/sessionManager.js - Message intake
core/messageHandler.js - Command engine
core/commandHandler.js
Access and State
- Ranks and permissions
systems/permissions/permissions.js - User records
systems/users/userStore.js - Document storage
systems/database/docStore.js
Group and Community
- Group controls
commands/group/warn.js - Moderation guards
systems/moderation/guard.js
User Capabilities
- Command capabilities
commands - Media and downloads
commands/download/tiktok.js - Media processing
systems/media/sticker.js - AI assistant
systems/ai/aiClient.js - Games and levels
plugins/quiz.js - Interactive menus
systems/menus/interactiveMenu.js - Economy and levels
systems/economy/economyStore.js
Plugins and Automation
- Plugin manager
systems/plugins/pluginManager.js - Auto-replies
plugins/autoresponder.js
Other components
- WhatsApp users
Connections 24
- WhatsApp users → WhatsApp: send messages
- WhatsApp → Message intake: deliver events
- Bot startup → Connection lifecycle: starts
index.js - Bot startup → Authentication setup: configures
index.js - Bot startup → Encrypted sessions: initializes
index.js - Connection lifecycle → WhatsApp: connects
- Message intake → Command engine: routes commands
core/messageHandler.js - Command engine → Command capabilities: loads and dispatches
core/commandHandler.js - Command engine → Ranks and permissions: checks access
core/commandHandler.js - Message intake → User records: tracks activity
core/messageHandler.js - User records → Document storage: persists records
systems/users/userStore.js - Encrypted sessions → Document storage: uses storage backend
core/sessionManager.js - Command capabilities → Group controls: includes
- Group controls → Moderation guards: configures protections
- Command capabilities → Media and downloads: includes
- Media and downloads → Media processing: offers conversions
- Command capabilities → AI assistant: offers AI chat
- Command capabilities → Games and levels: offers games
- Command capabilities → Interactive menus: provides interactive menus
systems/menus/interactiveMenu.js - Command capabilities → Economy and levels: offers rewards and levels
- Plugin manager → Auto-replies: loads plugins
systems/plugins/pluginManager.js - Plugin manager → Games and levels: loads plugins
systems/plugins/pluginManager.js - Auto-replies → WhatsApp users: replies to chat activity
- Command engine → WhatsApp: replies to users