This is a Node.js-based chatbot built using the whatsapp-web.js library that allows users to search the internet, get quotes, and create stickers from images. The chatbot can be used on any WhatsApp-enabled device.
- DALLE-2: The bot can generate images using DALLE-2 neural network.
- Meme Generation: The bot can generate memes on the fly using popular templates and user-provided captions.
- Image-to-Sticker Conversion: Users can upload images to the bot, which will then convert them to high-quality stickers that can be shared in chats.
- Multi-Feature Bot: The bot combines all of these features into a single, powerful package that can enhance any WhatsApp group or chat.
- Search the internet for any topic or question using
-search
- Get random quotes using
-quote
- Create stickers from images using
-sticker
- Get a random meme using
-meme
- Get help using
-help
- Get information about the chatbot using
-about
- Clone the repository
- Install the required packages by running
npm install
- Create a
.env
file with the following keys:MONGODB_URI
: MongoDB connection stringAPI_KEY
: OpenAI API key
- Run
npm start
to start the chatbot
API_KEY=<YOUR OPENAI KEY>
MONGODB_URI=<YOUR DATABASE URL>
- Save the chatbot's phone number in your contacts
- Scan the QR code that is displayed in the console using your WhatsApp app
- Send a message to the chatbot to start using it
whatsapp-web.js
for the WhatsApp APIdotenv
for environment variablesaxios
for making API requestsqrcode-terminal
for displaying the QR codemime-types
for getting the file extension of media filespath
andfs
for handling filesopenai
for the search functionalitywwebjs-mongo
andmongoose
for the database
Thank you for your interest in contributing to this project! As an open-source project, we welcome contributions from anyone. By contributing to this project, you are agreeing to abide by the Code of Conduct.
- Fork the repository
- Clone the repository to your local machine
- Install the necessary dependencies by running
npm install
- Create a new branch for your changes using
git checkout -b feature/your-feature-name
- Make your changes and commit them with a descriptive commit message
- Push your changes to your forked repository
- Create a pull request to the main repository's develop branch
If you notice a bug or want to request a new feature, please create an issue on the GitHub repository. Please include as much detail as possible, including how to reproduce the issue and any error messages that you encounter.
When submitting a pull request, please ensure that your changes:
- Follow the existing coding style
- Include tests for any new functionality
- Include documentation updates as necessary
Please also make sure that your code builds and passes the existing tests.
Please review our Code of Conduct before contributing to this project.
By contributing to this project, you agree that your contributions will be licensed under the MIT License.
This project is licensed under the MIT License.