Code Monkey home page Code Monkey logo

rodriguzejl1 / whatsapp-chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goldendragon0710/whatsapp-chatbot

0.0 0.0 0.0 13 KB

This project is a Node.js-based WhatsApp bot that offers multiple features including a chatbot, DALLE-2 image generation, meme generation, and image-to-sticker conversion. generate memes, create their own stickers, and more, making it a versatile tool for any WhatsApp group or chat.

License: MIT License

JavaScript 100.00%

whatsapp-chatbot's Introduction

WhatsApp Bot with ChatGPT🔥, DALLE-2⚡,Meme Generation, and Image-to-Sticker Conversion

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.

Features

  • 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

Installation

  1. Clone the repository
  2. Install the required packages by running npm install
  3. Create a .env file with the following keys:
    • MONGODB_URI: MongoDB connection string
    • API_KEY: OpenAI API key
  4. Run npm start to start the chatbot

Create .env File:

API_KEY=<YOUR OPENAI KEY>
MONGODB_URI=<YOUR DATABASE URL>

Usage

  1. Save the chatbot's phone number in your contacts
  2. Scan the QR code that is displayed in the console using your WhatsApp app
  3. Send a message to the chatbot to start using it

Dependencies

  • whatsapp-web.js for the WhatsApp API
  • dotenv for environment variables
  • axios for making API requests
  • qrcode-terminal for displaying the QR code
  • mime-types for getting the file extension of media files
  • path and fs for handling files
  • openai for the search functionality
  • wwebjs-mongo and mongoose for the database

Contributing

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.

Getting Started

  1. Fork the repository
  2. Clone the repository to your local machine
  3. Install the necessary dependencies by running npm install
  4. Create a new branch for your changes using git checkout -b feature/your-feature-name
  5. Make your changes and commit them with a descriptive commit message
  6. Push your changes to your forked repository
  7. Create a pull request to the main repository's develop branch

Issues

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.

Pull Requests

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.

Code of Conduct

Please review our Code of Conduct before contributing to this project.

License

By contributing to this project, you agree that your contributions will be licensed under the MIT License.

License

This project is licensed under the MIT License.

whatsapp-chatbot's People

Contributors

goldendragon0710 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.