How eliac-d/dix-bot works
Kiriti-Bot-MD is a WhatsApp assistant. Its principal workflow is a user sending a command, the bot handling it, and a response returning through WhatsApp. The README documents broad command families, while excerpts show startup, event observation, sub-bot message handling, persistence, and utilities. Several command handlers and the main message-dispatch wiring were not sampled; those links are therefore marked unverified rather than presented as confirmed calls.
Main entry points: message.js Message handling · index.js Bot startup · serbot-bridge.js Linked bots · detect.js Group events
Components 28
Bot runtime
- Bot startup
index.js - Group events
core/event/detect.js - Message handling
core/message.js - Linked bots
core/s/serbot-bridge.js - Event moderation
core/event/antistatus.js
Command features
- Stickers and media
modules/STICKERS - Media downloads
modules/DOWNLOAD - AI features
modules/IA - Group moderation
modules/GROUP - Tools and search
modules/TOOLS - Search commands
modules/SEARCH - Games and fun
modules/GAME - Social and gacha
modules/SOCIAL - Character collection
modules/GACHA - Anime reactions
modules/ANIME - Adult commands
modules/NSFW
State and identity
- Session credentials
core/s/auth_lmdb.js - Application database
database/db_adapter.js - Runtime caches
core/cache.js - JID resolution
core/identifier.js
Bot utilities
- Message serialization
core/serializer.js - Rate and queue limits
core/limiter.js - Usage metrics
core/metrics.js - Bot configuration
src/config/functions.js - Link previews
src/utils/preview-link.js - Worker processing
src/workers
Other components
- WhatsApp user
Connections 30
- WhatsApp user → WhatsApp: sends commands
README.md - WhatsApp → Bot startup: connects bot
index.js - Bot startup → Session credentials: loads credentials
index.js - Bot startup → Linked bots: loads linked bots
index.js - Bot startup → Group events: observes events
index.js - WhatsApp → Message handling: delivers messages
- Message handling → Message serialization: uses serialization
- Message handling → JID resolution: resolves sender
core/message.js - Message handling → Rate and queue limits: limits operations
core/message.js - Message handling → Usage metrics: records usage
core/message.js - Group events → Event moderation: observes status
core/event/detect.js - Linked bots → Message serialization: parses messages
core/s/serbot-bridge.js - Linked bots → Rate and queue limits: queues commands
core/s/serbot-bridge.js - Message handling → Stickers and media: dispatches commands
- Message handling → Media downloads: dispatches commands
- Message handling → AI features: dispatches commands
- Message handling → Group moderation: dispatches commands
- Message handling → Tools and search: dispatches commands
- Message handling → Search commands: dispatches commands
- Message handling → Games and fun: dispatches commands
- Message handling → Social and gacha: dispatches commands
- Message handling → Character collection: dispatches commands
- Message handling → Anime reactions: dispatches commands
- Message handling → Adult commands: dispatches commands
- Character collection → Application database: reads and writes
modules/GACHA/claim.js - Bot startup → Application database: saves user data
index.js - Bot startup → Usage metrics: flushes metrics
index.js - Bot startup → Link previews: initializes previews
index.js - Linked bots → Bot configuration: loads configuration
core/s/serbot-bridge.js - Worker processing → Message handling: processes work