How gamestar911/raven-bot works
RAVEN-BOT is a multi-device WhatsApp bot. Users send commands or messages through WhatsApp; the bot connects with Baileys, handles bot behavior, and replies in chats. The README highlights group management, media commands, and AI features, while sampled command code also shows search, downloads, and informational responses. Session credentials support the connection, and an in-memory store maintains chat-related state. The command-dispatch wiring and several documented features were not sampled, so their internal links are left out; the feature branches use the command module path as the available evidence.
Main entry points: raven.js Command handling · action/index.js Baileys connection · index.js Process entry · creds.json Session credentials
Components 18
Bot runtime
- Process entry
index.js - Baileys connection
action/index.js
Bot features
- Command handling
action/raven.js - Group management
action/raven.js - AI features
action/raven.js - Search and info
action/raven.js - Media commands
action/raven.js
Session and state
- Session credentials
session/creds.json - In-memory state
store/store.js
Media utilities
- Sticker conversion
lib/ravenexif.js - Media uploads
lib/ravenupload.js - Image enhancement
lib/remini.js
Status web
- Status web server
action/index.js - Pixel web assets
pixel/index.html
Other components
- WhatsApp user
- AI and content APIs
- Media services
Connections 14
- WhatsApp user → WhatsApp: sends messages
- WhatsApp → Baileys connection: delivers events
- Process entry → Baileys connection: loads
- Baileys connection → WhatsApp: connects
- Baileys connection → Session credentials: saves credentials
- Baileys connection → In-memory state: maintains state
- Command handling → WhatsApp: sends replies
- Command handling → AI and content APIs: requests AI/content
- Command handling → Media services: requests media
- Command handling → Sticker conversion: converts stickers
- Command handling → Media uploads: uploads media
- Command handling → Image enhancement: enhances images
- Process entry → Status web server: starts server
- Status web server → Pixel web assets: serves assets