Lazy Bot is an enterprise-scale, highly modular WhatsApp bot framework based on Baileys. It brings modern backend development practices—like isolated plugins, automated database migrations, hot-reloading, and a robust CLI—straight to your WhatsApp bot development workflow.
(For detailed development tutorials, please refer to our upcoming official documentation).
- 🧩 Modular Plugin Architecture: Stop writing spaghetti code. Build features in isolated namespaces (e.g.,
@admin/leveling). - ⚡ Hot-Reloading System: Save your code and watch it update in real-time. No more restarting the bot during development.
- 🛠️ Developer-First CLI: Generate boilerplate instantly using commands like
make:plugin,make:command, ormake:migration. - 🗄️ Isolated Database Migrations: Powered by Knex.js. Each plugin manages its own database tables automatically.
- 🌍 Native i18n Support: Easily support multiple languages for your bot responses and CLI outputs.
- 🛡️ Middleware Layer: Built-in middleware mechanism for spam protection, admin verification, and custom request filtering.
- 📦 Plugin Registry: Download and install community plugins seamlessly via
plugin:install.
Before installing Lazy Bot, make sure your system meets the following requirements:
- Node.js (v18.x or higher)
- Database Server (MySQL, PostgreSQL, or SQLite - depending on your Knex configuration)
- Git
Follow these simple steps to get your bot up and running:
1. Clone the repository
git clone https://github.com/onepixell/base-bot.git
cd base-bot2. Install dependencies
npm installUnlike typical bots, Lazy Bot features an integrated console (CLI)
To start the bot and access the console:
npm startOnce the bot is running and connected, your terminal becomes an interactive command prompt. You can type commands directly into the running terminal:
help: Show all available commands.make:plugin: Scaffolds a new plugin.make:command: Creates a new command inside your plugin.plugin:install <name>: Installs a plugin from the registry.
During development, plugins are stored in the workspace/ directory.
- Start the bot (
npm start). - In the active bot terminal, type:
make:plugin - Follow the interactive prompts to generate your plugin.
- Keep the bot running! Modify your code and save. Your changes will apply instantly via the hot-reloading system.
Distributed under the MIT License. See LICENSE for more information.