How lawrencenjeri4-lgtm/kenya-ultra works
Kenya-Ultra is a Node.js WhatsApp automation client. Its main workflow restores a SESSION_ID-backed auth state, creates a WhatsApp socket, listens for messages and commands, and sends responses; it also delegates settings and command execution to Kenya-Ultra Core. The README additionally describes pair-code login, session recovery, and multi-platform deployment. The graph includes the documented login capability, but deployment is hosting rather than runtime behavior. Source excerpts show the key startup and media paths; unsampled command branches are represented at the index boundary without inferring their internal calls.
Main entry points: index.js Command handling · sessionBootstrap.js Auth bootstrap · core.js Core API client · baileys.js Socket and media
Components 14
Session and connection
- Auth bootstrap
sessionBootstrap.js - Local auth state
WhatsApp messaging
- Socket and media
baileys.js - Bot runtime
index.js - Outbound send governor
sendGovernor.js
Kenya-Ultra Core
- Core API client
core.js
Bot features and operations
- Command handling
index.js - Client actions
clientActions.js - Sticker processing
stickerUtils.js - Message and activity logs
consoleLog.js
Other components
- Bot operator
- Pairing portal
- Kenya-Ultra Core
Connections 20
- Bot operator → Pairing portal: generates session
README.md - Bot operator → Auth bootstrap: configures session
README.md - Pairing portal → Auth bootstrap: provides SESSION_ID
README.md - Auth bootstrap → Local auth state: loads and saves
sessionBootstrap.js - Auth bootstrap → Core API client: validates session
sessionBootstrap.js - Core API client → Kenya-Ultra Core: calls validation
core.js - Auth bootstrap → Bot runtime: returns auth state
index.js - Bot runtime → Socket and media: creates connection
index.js - Socket and media → WhatsApp: connects and downloads media
baileys.js - WhatsApp → Bot runtime: delivers events
- Bot runtime → Command handling: dispatches commands
index.js - Command handling → Core API client: requests settings and execution
index.js - Core API client → Kenya-Ultra Core: calls Core endpoints
core.js - Command handling → Client actions: invokes actions
index.js - Command handling → Sticker processing: creates or retags
index.js - Command handling → Socket and media: downloads quoted media
index.js - Command handling → Outbound send governor: sends responses through
index.js - Bot runtime → Outbound send governor: wraps socket sender
index.js - Outbound send governor → WhatsApp: queues and sends messages
sendGovernor.js - Bot runtime → Message and activity logs: logs incoming messages
index.js