Go to file
rainerosion 04689a43f0
All checks were successful
continuous-integration/drone/push Build is passing
autu build
2023-04-15 15:48:01 +08:00
.idea init 2023-04-15 15:09:10 +08:00
bootstrap init 2023-04-15 15:09:10 +08:00
config init 2023-04-15 15:09:10 +08:00
gpt init 2023-04-15 15:09:10 +08:00
handlers init 2023-04-15 15:09:10 +08:00
utils init 2023-04-15 15:09:10 +08:00
.drone.yml autu build 2023-04-15 15:48:01 +08:00
.gitignore git ignore 2023-04-15 15:09:28 +08:00
config.json.example init 2023-04-15 15:09:10 +08:00
Dockerfile init 2023-04-15 15:09:10 +08:00
go.mod init 2023-04-15 15:09:10 +08:00
go.sum init 2023-04-15 15:09:10 +08:00
main.go init 2023-04-15 15:09:10 +08:00
Makefile init 2023-04-15 15:09:10 +08:00
README.md init 2023-04-15 15:09:10 +08:00
start.sh init 2023-04-15 15:09:10 +08:00

微信机器人

最近ChatGPT异常火爆想到将其接入到个人微信是件比较有趣的事所以有了这个项目。项目基于openwechat开发支持ChatGPT和New Bing其中New Bing依赖于new-bing项目提供的http接口。

目前实现了以下功能

  • 群聊@回复
  • 私聊回复
  • 自动通过回复

注册openai

ChatGPT注册可以参考这里

部署

# 获取项目
git clone https://github.com/bujnlc8/gptbing

# 进入项目目录
cd gptbing/wechatbot

# 复制配置文件, 改成实际的值,注意去掉#注释
copy config.json.example config.json

# 启动项目
go run main.go


或者docker部署

bash start.sh 0.0.2   # 代理地址根据实际情况修改,运行之后`docker logs wechatbot`会打印出登录地址

说明

本项目fork至https://github.com/djun/wechatbot,修改使之支持ChatGPTNew Bing,在此致谢!

⚠️ 有一定的几率导致被微信封号,请谨慎使用,由此导致的封号,本人概不负责