This project automates WhatsApp using Baileys JavaScript library. It enables you to interact with WhatsApp programmatically and perform various automated tasks.
Before you start using the project, make sure you have the following prerequisites installed on your system:
- Node.js
- npm
You can install them using the following commands:
sudo apt update && apt upgrade -y
sudo apt install nodejs npm webp -y
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/ahmadsysdev/wabot.git
cd wabot
- Install dependencies:
npm install
- Configure the project:
- Inside the
config
directory, create adev.json
file with the following content:
[
{
"name": "John Smith",
"jid": "6012xxxxxxx@s.whatsapp.net",
"number": "6012xxxxxxx",
"email": "yourmail@gmail.com",
"type": "developer",
"instagram": "https://instagram.com/{username}",
"bio": "Hello world!",
"self": "6012xxxxxxx@s.whatsapp.net"
}
]
- Create a
config.json
file inside theconfig
directory with the following content:
[
{
"packInfo": {
"packname": "Original",
"author": "John Smith"
},
"selfname": "WhatsApp Automation Projects",
"ignore": {
"directory": [
"public"
]
},
"limit": {
"limitUser": 30,
"limitPremium": 40,
"limitProfessional": 70
},
"source": "https://example.com/path"
}
]
- Start the project:
npm run start
- Scan the QR code in your WhatsApp app to authenticate and complete the setup.
Contributions to this project are welcome. Fell free to open issues and pull requests for suggestions, enhancements, or bug fixes.
This project is licensed under the GNU General Public License (GPL).