https://github.com/jastinxyz/chatgpt-whatsapp
https://github.com/jastinxyz/chatgpt-whatsapp
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jastinxyz/chatgpt-whatsapp
- Owner: JastinXyz
- License: mit
- Created: 2022-12-10T04:30:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T06:54:46.000Z (over 2 years ago)
- Last Synced: 2024-10-12T10:34:41.040Z (7 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatgpt-whatsapp
A ChatGPT implementation into Whatsapp... However it's a bot, I'm not responsible for anything that happens in your Whatsapp account (yes I guess Whatsapp just bans any account without any fault)
## Instalation
- You need nodejs and npm installed
- clone this repo
- run `npm i` to install all package.
- fill all the configuration in `example.env`
- `SESSION_TOKEN` is your chatgpt session token.
- rename `example.env` to `.env`
- run `node .` and scan the qr in terminal with you Whatsapp.
- use command `!chatgpt ` to use the bot
- enjoy## Session Token
To get your session token:
- go to https://chat.openai.com/chat (you must login or signup first)
- Open dev tools (F12)
- Go to `Application` > `Cookies`
- You should copy the value of `__Secure-next-auth.session-token` cookies.
- Paste it in `example.env` and you must rename the file to `.env`