A powerful and customizable WhatsApp bot built with Node.js and @whiskeysockets/baileys
Follow these instructions to set up and run your WhatsApp bot on your local machine or vps.
Make sure you have the following installed:
- Node.js LTS (v20 or later)
- FFmpeg (for media processing)
- Git
- PM2 (optional, for running the bot in production mode)
-
Clone the repository:
git clone https://github.com/ShibamDey69/WhatsApp-Bot
-
Navigate to the project directory:
cd WhatsApp-Bot -
Update the configuration:
Open the
src/config.jsonfile and add your owner numbers:{ "ownerNumbers": ["YOUR_NUMBER", "ANOTHER_NUMBER"] }Replace
YOUR_NUMBERandANOTHER_NUMBERwith the actual WhatsApp numbers that should have owner permissions.
You can start the bot using either Node.js directly or with PM2 for production.
export SHIBAM && node src/index.js BOT_NUMBERpm2 start ecosystem.config.js -- BOT_NUMBERReplace BOT_NUMBER with the actual number assigned to the bot.
- src/config.json: Configuration file for the bot, where you can add owner numbers and other settings.
This project is licensed under the MIT License - see the LICENSE file for details.