☝ 一个好玩的个人微信机器人程序(DaenDLL、VLW),插件开发,查天气,ChatGPT聊天,设置定时任务,公众号监控转发...
☝ 一个好玩的个人微信机器人程序(DaenDLL、VLW),插件开发,查天气,ChatGPT聊天,设置定时任务,公众号监控转发...
一个还算有意思的wechat robot项目,理想将其设计成一个多功能的机器人助手
Dean DLL、千寻框架vlw框架,请参考framework目录plugins目录下的功能,请参考plugins目录** 注意:**
微信的hook 类软件,那么只需要在这类软件上设置回调地址即可Dean DLL、千寻vlw三个框架,如果您有其他框架,可自行添加(参考framework目录,实现IFramework接口即可),或联系我添加hook类软件,您需要利用搜索引擎自行寻找功能示例:
已接入框架,展开看
已对接API,展开看
…已有插件
import _ "github.com/yqchilde/wxbot/plugins/baidubaike"import _ "github.com/yqchilde/wxbot/plugins/chatgpt"import _ "github.com/yqchilde/wxbot/plugins/crazykfc"import _ "github.com/yqchilde/wxbot/plugins/memepicture"import _ "github.com/yqchilde/wxbot/plugins/moyuban"import _ "github.com/yqchilde/wxbot/plugins/pinyinsuoxie"import _ "github.com/yqchilde/wxbot/plugins/plmm"import _ "github.com/yqchilde/wxbot/plugins/weather"import _ "github.com/yqchilde/wxbot/plugins/zaobao"import _ "github.com/yqchilde/wxbot/plugins/manager"import _ "github.com/yqchilde/wxbot/plugins/ghmonitor"import _ "github.com/yqchilde/wxbot/plugins/wordcloud"import _ "github.com/yqchilde/wxbot/plugins/chaid"import _ "github.com/yqchilde/wxbot/plugins/youdaofanyi"import _ "github.com/yqchilde/wxbot/plugins/friendadd"import _ "github.com/yqchilde/wxbot/plugins/choose"import _ "github.com/yqchilde/wxbot/plugins/localimage"import _ "github.com/yqchilde/wxbot/plugins/localimagespider"git clone https://github.com/yqchilde/wxbot.git配置config.yaml
调试运行或编译
go run main.gomake releasebash -c "$(curl -fsSL https://raw.fastgit.org/yqchilde/wxbot/hook/docker/run.sh)"config.yaml,否则会报错docker run -d \
--name="wxbot" \
-p 9528:9528 \
-v $(pwd)/config.yaml:/app/config.yaml \
-v $(pwd)/data:/app/data \
yqchilde/wxbot:latestfork本项目WXBOT_TOKEN,值为上面获取的tokenv1.0.0,然后等待actions编译完成,编译完成后会在release中生成对应的wxbot文件如果您想要扩展自己的插件,可以参考plugins目录下的插件
如果您想要扩展其他框架,可以参考frameworks目录下的框架
如果您需要增减插件,可编辑 plugins.yaml 中代码中去掉对应插件的导入或者添加对应插件的导入,照猫画虎即可
修改完plugins.yaml后需要执行一次make plugins或go generate -tags plugins ./engine/plugins生成对应的plugins.go文件再去编译
…| 环境变量名 | 变量类型 | 说明 |
|---|---|---|
| DEBUG | bool | 优先级大于其他DEBUG_开头的变量,开启后开启所有DEBUG模式 |
| 用于调试HTTP请求和调用日志文件名和行号 | ||
| DEBUG_LOG | bool | 用于调试调用日志文件名和行号 |
import (
"errors"
"fmt"
"strings"
"sync"
"time"
"github.com/PullRequestInc/go-gpt3"
"github.com/yqchilde/wxbot/engine/control"
"github.com/yqchilde/wxbot/engine/pkg/log"
"github.com/yqchilde/wxbot/engine/pkg/sqlite"
"github.com/yqchilde/wxbot/engine/robot"
)插件,请在plugins.yaml中添加对应的插件插件,请在README.md中已有插件部分添加对应的插件插件,请在plugins/README.md中添加对应的插件make plugins 或 go generate -tags plugins ./engine/plugins 生成对应的plugins.go文件开发计划: 开发计划
如果您感觉这个项目有意思,麻烦帮我点一下star
这个项目待(不)补(完)充(善)很多东西,由于工作关系会抽出时间弄,感谢您发现并使用此仓库
如果您有疑惑可以加Q群讨论
yqchilde/wxbot 项目一直以来都是在 JetBrains 公司旗下的 GoLand 集成开发环境中进行开发,基于 free JetBrains Open Source license(s) 正版免费授权,在此表达我的谢意。
非Hook版机器人核心由 openwechat SDK实现,在nohook分支,已暂停维护
Hook版机器人框架我使用的是 《我的框架》已跑路,现在用的是千寻,Dean DLL,为hook分支
hook分支大量借鉴了一个十分优秀的项目ZeroBot-Plugin的设计方案 ,其中很多基础代码来自ZeroBot-Plugin,在此基础上扩展了支持wechat的方式,非常感谢,Thanks♪(・ω・)ノ
AGPL-3.0 license. See the LICENSE file for details.
No open issues yet, or sync has not completed.