Sign inSign up

penndu/wechatbot

By penndu

•Updated over 3 years ago

https://dusays.com/posts/559/

Image
0

280

penndu/wechatbot repository overview

⁠wechatbot — 个人微信接入 ChatGPT

基于 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 回答了。


⁠特性 / Features

  • 群聊 @ 回复 —— 在群里 @机器人 即可触发

  • 私聊回复 —— 单独和机器人聊天

  • 自动通过好友 —— 新好友请求自动通过

  • 基于 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


⁠快速开始 / Quick Start

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

⁠标签 / Tags

Tag说明
latest最新构建

Tag summary

Content type

Image

Digest

sha256:2277fadad…

Size

29.6 MB

Last updated

over 3 years ago

docker pull penndu/wechatbot