MCPcopy Index your code
hub / github.com/djun/wechatbot

github.com/djun/wechatbot @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
22 symbols 50 edges 7 files 15 documented · 68%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

wechatbot

最近chatGPT异常火爆,想到将其接入到个人微信是件比较有趣的事,所以有了这个项目。项目基于openwechat 开发

目前实现了以下功能

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

注册openai

chatGPT注册可以参考这里

安装使用

````

获取项目

git clone https://github.com/869413421/wechatbot.git

进入项目目录

cd wechatbot

复制配置文件

copy config.dev.json config.json

启动项目

go run main.go

启动前需替换config中的api_key

Extension points exported contracts — how you extend this code

MessageHandlerInterface (Interface)
MessageHandlerInterface 消息处理接口 [2 implementers]
handlers/handler.go

Core symbols most depended-on inside this repo

ReplyText
called by 4
handlers/handler.go
handle
called by 2
handlers/handler.go
LoadConfig
called by 2
config/config.go
Completions
called by 2
gtp/gtp.go
NewGroupMessageHandler
called by 1
handlers/group_msg_handler.go
ReplyText
called by 1
handlers/group_msg_handler.go
NewUserMessageHandler
called by 1
handlers/user_msg_handler.go
ReplyText
called by 1
handlers/user_msg_handler.go

Shape

Function 8
Method 6
Struct 6
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

handlers/handler.go6 symbols
handlers/user_msg_handler.go4 symbols
handlers/group_msg_handler.go4 symbols
gtp/gtp.go4 symbols
config/config.go2 symbols
main.go1 symbols
bootstrap/bootstrap.go1 symbols

For agents

$ claude mcp add wechatbot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact