AutumnWhj / ChatGPT-wechat-bot
- пятница, 9 декабря 2022 г. в 00:34:23
ChatGPT for wechat
ChatGPT webchart bot is a WeChat assistant based on NodeJS and webchaty. This tool is more convenient for you to use ChatGPT, you just chat with it as a good friend or a housekeeper.
// build
docker build --pull --rm -f "Dockerfile" -t wechatbot:latest "."
// run, and then you will see some logs
docker run --name wechatbot wechatbot:latest
Please check the root directory of your project, whether there is a file —— wechaty-puppet-wechat.memory-card.json
, if so, please delete it and try it again.
"engines": { "node": ">=16", "npm": ">=7" }
Refer to this article: https://github.com/transitive-bullshit/chatgpt-api.
To get a session token:
- Go to https://chat.openai.com/chat and log in or sign up.
- Open dev tools.
- Open Application > Cookies.
- Copy the value for __Secure-next-auth.session-token and save it to your environment.
// install dependencies
npm i
// dev
npm run dev
// or
// build
npm run build
// run lib
node lib/bundle.esm.js