A feature-rich WhatsApp bot built using Baileys library with command handling, user management, and balance system.
- 📱 WhatsApp Web connection with session management
- 💬 Multi-prefix command system (
!
,#
,/
,.
,$
,-
) - 👤 User database with balance tracking
- 🔒 Owner-only commands for administration
- 📊 Balance management system (add/remove/check)
- 📝 Beautiful message logging format
- 🔄 Auto-reload on file changes
- 📦 Simple JSON database storage
- Clone the repository:
git clone https://github.com/VynaaValerie/Base-Bot-Deposit-.git
cd whatsapp-bot
- Install dependencies:
npm install
- Configure your settings in
config.js
:
global.owner = [
"628", // Your WhatsApp number
"628" // Additional owner (optional)
]
- Start the bot:
npm start
- Scan the QR code with your WhatsApp account when prompted.
Command | Description | Example |
---|---|---|
menu |
Show bot menu | !menu |
owner |
Show owner information | #owner |
source |
Show source code | /source |
info |
Show bot information | .info |
help |
Show help | $help |
Command | Description | Example |
---|---|---|
addsaldo |
Add balance to user | !addsaldo 628xx 500 |
delsaldo |
Deduct balance from user | #delsaldo 628xx 200 |
ceksaldo |
Check user balance | /ceksaldo 628xx |
User data is stored in database.json
:
{
"users": {
"6281234567890": {
"jid": "[email protected]",
"name": "User Name",
"number": "6281234567890",
"saldo": 1000,
"registered": true,
"lastActive": "2023-01-01T00:00:00.000Z",
"createdAt": "2023-01-01T00:00:00.000Z"
}
}
}
whatsapp-bot/
├── index.js # Main bot file
├── case.js # Command handler
├── config.js # Configuration
├── package.json # Dependencies
└── database.json # User database (auto-generated)
- @whiskeysockets/baileys - WhatsApp Web library
- pino - Logging
- awesome-phonenumber - Phone number formatting
- axios - HTTP requests
-
Pairing Code:
- Delete the
session
folder and restart the bot - Ensure your phone has an active internet connection
- Delete the
-
Connection Issues:
- Check your internet connection
- The bot will automatically attempt to reconnect
-
Command Not Working:
- Ensure you're using one of the supported prefixes
- Check for typos in the command
Developed by Vynaa Valerie
This project is licensed under the MIT License - see the LICENSE file for details.