A powerful and customizable WhatsApp bot built with Node.js and powered by Baileys or Twilio. This bot can handle messages, automate tasks, and integrate with APIs to provide a seamless experience.
- Automated Replies: Respond to messages with predefined or dynamic content.
- Group Management: Kick, add,close ,open or promote users in groups.
- API Integration: Fetch data from external APIs (e.g., weather, news, or jokes).
- Custom Commands: Add your own commands for specific tasks.
- Media Support: Send and receive images, videos, and documents.
- Multi-Language: Supports multiple languages for global users.
- Database Integration: Save data using MongoDB, Firebase, or any other database.
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git cd your-repo -
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.envfile in the root directory. - Add your WhatsApp API credentials or Twilio tokens:
API_KEY=your_api_key_here DATABASE_URL=mongodb://localhost:27017/yourdb
- Create a
-
Run the bot:
npm start
/help- Show all available commands./ping- Check if the bot is online./joke- Get a random joke./weather <city>- Get the current weather for a city.
Send /weather New York to get the weather in New York.
You can customize the bot by editing the config.js file:
module.exports = {
prefix: "/", // Command prefix
adminNumber: "0791951098", // Admin WhatsApp number
defaultLanguage: "en", // Default language
};CONTRIBUTIONS
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or need help, feel free to open an issue or contact me at 0791951098.
- Baileys - WhatsApp Web API.
- Twilio - WhatsApp API for businesses.
- OpenWeatherMap - Weather data.
Made with โค๏ธ by DANTIELLO TECH.
โญ๏ธ Star this repo if you find it useful!
BIENVENUE ๐
