基于 openwechat 的微信机器人,在个人微信里直接和 ChatGPT 对话:群聊 @ 回复、私聊回复、自动通过好友。
English
A personal WeChat bot built on openwechat. Talk to ChatGPT straight inside WeChat — @-mention replies in group chats, private chat replies, and automatic friend acceptance.
把大模型接进日常用的那个微信:同事在群里 @ 你,顺手就把问题转给 ChatGPT 回答了。
群聊 @ 回复 —— 在群里 @机器人 即可触发
私聊回复 —— 单独和机器人聊天
自动通过好友 —— 新好友请求自动通过
基于 openwechat —— 成熟的微信协议实现,登录态稳定
Go 编写 —— 单二进制,部署简单
@-mention replies in groups — trigger the bot by mentioning it
Private chat replies — talk to the bot one-on-one
Auto-accept friends — incoming friend requests are accepted automatically
Built on openwechat — a mature WeChat protocol implementation with stable login state
Written in Go — a single binary, trivial to deploy
docker run -d --name wechatbot \
-v ./config:/app/config \
-v ./data:/app/data \
--restart always \
penndu/wechatbot:latest
首次运行需要在挂载的配置目录中填入大模型的 API Key 与微信登录信息。
On first run, fill in the LLM API key and WeChat login details in the mounted config directory.
version: "3.9"
services:
wechatbot:
image: "penndu/wechatbot:latest"
volumes:
- ./config:/app/config
- ./data:/app/data
restart: always
| Tag | 说明 |
|---|---|
latest | 最新构建 |
Content type
Image
Digest
sha256:2277fadad…
Size
29.6 MB
Last updated
over 3 years ago
docker pull penndu/wechatbot