Giter Club home page Giter Club logo

whatsapp-chatgpt's Introduction

Whatsapp Chatbot

This project is a whatsapp bot that uses OpenAI's ChatGPT to respond to user inputs. To use ChatGPT, simply type !gpt followed by your prompt, and the bot will generate a response.

You can also disable the !gpt Prefix and send all messages to ChatGPT instantly.

Example

Requirements

  • Node.js
  • A recent version of npm
  • An OpenAI Account

.env File example

EMAIL=your_email
PASSWORD=your_password

PREFIX_ENABLED=true

Installation

  1. Clone this repository
  2. Install the required packages by running npm install
  3. Put your Email and Password into the .env File (EMAIL, PASSWORD)
  4. Run the bot using npm run start
  5. A browser opens, complete the captcha and click login
  6. Scan the QR Code with Whatsapp (Link a device)
  7. Now you're ready to go :)

Usage

To use the bot, simply send a message with !gpt command followed by your prompt. For example:

!gpt What is the meaning of life?

The bot only responds to messages that are received by you, not sent.

Used libraries

whatsapp-chatgpt's People

Contributors

navopw 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.