How loki-xer/jarvis works
Jarvis MD is a multi-device WhatsApp bot. Its principal workflow is WhatsApp activity entering the bot runtime, being handled as messages/commands, and producing replies or actions through feature plugins. The repository also includes persistent user and schedule data, scheduling/calendar features, and AI, media, group, search, and administration capabilities. The startup excerpt shows runtime initialization; plugin references and several implementation excerpts are obfuscated or incomplete, so uncertain internal dispatch and storage links are omitted.
Main entry points: lib/index.js Command utilities · index.js Startup · calendar.js Calendar · schedule.js Scheduling
Components 21
Bot runtime
- Startup
index.js - Bot engine
lib/Base/Base.js - WhatsApp client
lib/Base/Client.js - Message handling
lib/Base/Handle.js - Message model
lib/Base/Message.js - Baileys adapter
lib/bailys/index.js - Command utilities
lib/index.js - Bot configuration
config.js
Bot features
- General commands
plugins/misc.js - Group commands
plugins/group.js - Bot management
plugins/manage.js - Media tools
plugins/client/fancy.js - Downloads
plugins/download.js - AI features
plugins/ai.js - Calendar
plugins/calendar.js - Scheduling
plugins/schedule.js
Persistent data
- Personal data
lib/database/Personal.js - Schedule data
lib/database/Schedule.js - Message store
lib/database/Store.js
External services
Other components
- WhatsApp user
Connections 17
- WhatsApp user → WhatsApp: sends messages
- WhatsApp → Baileys adapter: delivers events
- Startup → Bot engine: starts
index.js - Startup → Bot configuration: loads
index.js - Bot engine → Message handling: delegates
- Message handling → Message model: handles
- WhatsApp client → Baileys adapter: connects through
- General commands → Command utilities: uses
- Group commands → Command utilities: uses
plugins/group.js - Bot management → Command utilities: uses
plugins/manage.js - Downloads → Command utilities: uses
plugins/download.js - Media tools → Command utilities: uses
plugins/converter.js - AI features → Command utilities: uses
- Calendar → Command utilities: uses
- Scheduling → Command utilities: uses
- Calendar → Schedule data: uses
- Scheduling → Schedule data: uses