How ngeff/gl-bot works
GL BOT is a Baileys-based WhatsApp automation bot. The main workflow receives WhatsApp events, processes incoming messages through filtering and command dispatch, and sends command results back through the socket; group membership events separately produce welcome and farewell messages. Its documented capabilities also include administration, media conversion, translation, speech, and weather. Edges are limited to relationships shown by excerpts, the source index, or the README; some advertised integrations and commands were not sampled.
Main entry points: message.js Message handler · bot.js Bot socket runtime · utility Utility commands · group.js Membership handler
Components 20
Bot Runtime
- Startup and config
index.js - Bot socket runtime
src/bot.js - Connection handling
src/handlers/connection.js
Message Handling
- Message handler
src/handlers/message.js - Command loader
src/utils/loader.js - Message utilities
src/utils/message.js - Anti-spam
src/middleware/antispam.js - Anti-link
src/middleware/antillink.js
Group Features
- Membership handler
src/handlers/group.js
Command Capabilities
- Group administration
src/commands/admin - Help and ping
src/commands/general - Media conversion
src/commands/media - Sticker creation
src/commands/media/sticker.js - Utility commands
src/commands/utility
Other components
- WhatsApp users
- WhatsApp / Baileys
- Weather API
- Translation API
- Text-to-speech service
- AI chat service
Connections 24
- WhatsApp users → WhatsApp / Baileys: sends events
README.md - WhatsApp / Baileys → Bot socket runtime: delivers events
src/bot.js - Startup and config → Bot socket runtime: starts
index.js - Bot socket runtime → WhatsApp / Baileys: connects and sends
src/bot.js - Bot socket runtime → Message handler: dispatches messages
src/bot.js - Bot socket runtime → Membership handler: dispatches membership
src/bot.js - Bot socket runtime → Connection handling: handles connection
src/bot.js - Message handler → Command loader: loads commands
src/handlers/message.js - Message handler → Message utilities: extracts content
src/handlers/message.js - Message handler → Anti-spam: checks spam
src/handlers/message.js - Message handler → Anti-link: checks links
src/handlers/message.js - Message handler → Group administration: dispatches commands
- Message handler → Help and ping: dispatches commands
- Message handler → Media conversion: dispatches commands
- Message handler → Utility commands: dispatches commands
- Sticker creation → Message utilities: downloads media
src/commands/media/sticker.js - Membership handler → WhatsApp / Baileys: reads metadata and sends
src/handlers/group.js - WhatsApp users → Group administration: requests group controls
README.md - WhatsApp users → Media conversion: requests conversions
README.md - WhatsApp users → Utility commands: requests utilities
README.md - Utility commands → Weather API: fetches weather
src/commands/utility/weather.js - Utility commands → Translation API: translates text
README.md - Utility commands → Text-to-speech service: generates speech
README.md - Utility commands → AI chat service: queries AI
README.md