Skip to content

BOTCAHX/whatsapp-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp GPT Bot

WhatsApp GPT Bot is a chatbot script designed for use on the WhatsApp platform. It is built using Node.js and whatsapp-web.js library.

Menu

┌ *MENU*
│ ◦ ai
│ ◦ gptgo
│ ◦ gpt4
│ ◦ c-ai
│ ◦ dalle
│ ◦ bard
│ ◦ bardimg
│ ◦ bing
│ ◦ bimg
│ ◦ text2img
│ ◦ sticker
│ ◦ remini
│ ◦ toanime
│ ◦ togta
│ ◦ tozombie
│ ◦ stablediffusion
│ ◦ removebg
│ ◦ tourl
│ ◦ info
│ ◦ groups
│ ◦ menu
│ ◦ snapshot
└

Prerequisites

Before you start, ensure that you have the following installed on your system:

  • Node.js
  • Puppeteer
  • Chrome
  • Npm (Node Package Manager)

Install Chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

Update Chrome

cat /etc/apt/sources.list.d/google-chrome.list

Installation

  1. Clone or download the repository from here.
git clone https://github.com/BOTCAHX/whatsapp-gpt
  1. Open your terminal and navigate to the project directory.
  2. Run the following command to install the required dependencies:
    npm install

Usage

To start the WhatsApp GPT Bot, run the following command in your terminal:

node bot.js

How it Works

WhatsApp GPT Bot utilizes the WhatsApp Web API to connect to a WhatsApp account. It sends and receives messages using the WhatsApp account, allowing it to provide chatbot functionalities.

When a new message is received, the bot uses the message content as an input to the GPT-3 model. The generated response from the model is then sent back as a reply to the sender.

Contributing

Contributions are welcome! If you find any bugs or want to enhance the features of the bot, feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.