How yusufusta/whatsasena works
WhatsAsena is a WhatsApp Web userbot. Its principal workflow is to receive WhatsApp messages, dispatch registered commands, and send replies or perform chat actions through the client. Feature modules also provide administration, group utilities, media tools, scraping, and configurable greetings/filters; selected features persist data through Sequelize-backed storage. The source index establishes several module references, but unsampled plugin internals limit confidence about their detailed behavior and external integrations.
Main entry points: events.js Command registry · bot.js Bot startup · ReplyMessage.js Quoted replies · admin.js Admin commands
Components 24
Bot runtime
- Bot startup
bot.js - Command registry
events.js
Bot features
- Admin commands
plugins/admin.js - AFK status
plugins/afk.js - Message filters
plugins/filters.js - Group greetings
plugins/greetings.js - Lydia assistant
plugins/lydia.js - Media tools
plugins/memes.js - Scrapers
plugins/scrapers.js - Profile tools
plugins/profile.js - Chat utilities
plugins/tagall.js
Configuration and state
- Language strings
language.js - Runtime configuration
config.js - Filter records
plugins/sql/filters.js - Greeting records
plugins/sql/greetings.js - Plugin records
plugins/sql/plugin.js
WhatsApp client layer
- WhatsApp client API
whatsasena/Base.js - Message wrappers
whatsasena/Message.js - Quoted replies
whatsasena/ReplyMessage.js - Image messages
whatsasena/Image.js - Video messages
whatsasena/Video.js - Session encoding
whatsasena/StringSession.js
Other components
- WhatsApp user
- WhatsApp Web
Connections 26
- WhatsApp user → WhatsApp Web: sends messages
README.md - WhatsApp Web → Bot startup: delivers messages
- Bot startup → Command registry: loads commands
bot.js - Bot startup → Runtime configuration: loads settings
bot.js - Bot startup → WhatsApp client API: loads client layer
bot.js - Bot startup → Greeting records: loads storage
bot.js - Bot startup → Plugin records: loads storage
bot.js - Command registry → Runtime configuration: reads handlers
events.js - Admin commands → Command registry: registers commands
plugins/admin.js - AFK status → Command registry: registers commands
plugins/afk.js - Message filters → Command registry: registers commands
plugins/filters.js - Message filters → Filter records: reads and writes
plugins/filters.js - Group greetings → Command registry: registers commands
plugins/greetings.js - Group greetings → Greeting records: reads and writes
plugins/greetings.js - Lydia assistant → Command registry: registers commands
plugins/lydia.js - Media tools → Command registry: registers commands
plugins/memes.js - Scrapers → Command registry: registers commands
plugins/scrapers.js - Profile tools → Command registry: registers commands
plugins/profile.js - Chat utilities → Command registry: registers commands
plugins/tagall.js - Admin commands → Language strings: reads strings
plugins/admin.js - Bot startup → WhatsApp Web: connects client
- WhatsApp client API → Message wrappers: supports wrappers
whatsasena/Message.js - Message wrappers → Quoted replies: wraps quoted message
whatsasena/Message.js - Image messages → Quoted replies: wraps quoted message
whatsasena/Image.js - Video messages → Quoted replies: wraps quoted message
whatsasena/Video.js - Bot startup → Session encoding: loads session support