A chatgpt server for wechat & wecom
- node >= 14.17.6
- npm >= 6.14.18
git clone https://github.com/zhaojh10010/wechat_with_bot.gitcd wechat_with_bot
npm install
or
yarn installmodify wechat_with_bot/src/conf/config.js to add your wechat token and chatgpt token
token: wechat verify tokenencodingAESKey: wechat encrypt keyqytoken: wecom verify tokenqyEncodingAESKey: wecom encrypt keycorpid: wecom corporation idcorpsecret: wecom corporation secretappid: wechat official account appidappsecret: wechat official account appsecretaccName: wechat official account nameOPENAI_API_KEY: chatgpt api key
see WeChat Configuration for wechat dev tutorial
see WeCom Configuration for wecom dev tutorial
see ChatGPT Configuration for chatgpt api tutorial
Use npm run qy to start wecom server, default port is 34110
Use npm run wx to start wechat official account server, default port is 34111
- wechat needs a domain to verify your server, maybe
nginxis suitable for reverse proxy - To communicate with openai chatgpt, you need to use proxy or deploy this project in a foreign VPS