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.
- Node.js
- A recent version of npm
- An OpenAI Account
EMAIL=your_email
PASSWORD=your_password
PREFIX_ENABLED=true
- Clone this repository.
- Install the required packages by running
npm install
- Put your Email and Password into the .env File (
EMAIL
,PASSWORD
) - Run the bot using
npm run start
- A browser opens, complete the captcha and click login
- Scan the QR Code with Whatsapp (Link a device)
- Now you're ready to go :)
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.