Skip to content

Commit

Permalink
chore: 移除千寻代码,推荐使用DeanDLL
Browse files Browse the repository at this point in the history
  • Loading branch information
yqchilde committed Jul 10, 2023
1 parent eec459d commit 4521ca4
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 1,132 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

一个还算有意思的wechat robot项目,理想将其设计成一个多功能的机器人助手 😈

* 🤨框架可无侵入扩展,现已接入`Dean DLL``千寻框架``vlw框架`,请参考`framework`目录
* 🤨框架可无侵入扩展,现已接入`Dean DLL`~~`千寻框架`~~`vlw框架`,请参考`framework`目录
* 🤨功能可无侵入扩展,现已集成`plugins`目录下的功能,请参考`plugins`目录
* 🤨新手视频教程 📺
* BiliBili:[https://www.bilibili.com/video/BV1Q84y1c7iF](https://www.bilibili.com/video/BV1Q84y1c7iF)
Expand All @@ -33,7 +33,7 @@
**🔔 注意:**

1. 使用本项目之前需要您已经配置好相关的 `微信的hook` 类软件,那么只需要在这类软件上设置回调地址即可
2. 本项目已接入`Dean DLL``千寻``vlw`三个框架,如果您有其他框架,可自行添加(参考`framework`目录,实现`IFramework`接口即可),或联系我添加
2. 本项目已接入`Dean DLL`~~`千寻`~~`vlw`三个框架,如果您有其他框架,可自行添加(参考`framework`目录,实现`IFramework`接口即可),或联系我添加
3. 本项目不提供任何`hook`类软件,您需要利用搜索引擎自行寻找
4. 本项目暂时只支持HTTP协议,关于websocket协议支持目前不考虑
5. 简而言之,本项目是一个消息处理的中间件,微信消息监听获取是从框架获取
Expand All @@ -53,9 +53,6 @@
* [x] [Dean DLL](https://gitee.com/qxvxhook/pc-vx-hook-http-api/tree/36018/DaenWxHook) | [👉对接说明文档👀](docs/deandll.md)
* 具体配置查看 `config.yaml` 文件注释说明
* ![img](docs/deandll.png)
* [x] [千寻框架](https://gitee.com/qxvxhook/pc-vx-hook-http-api/tree/36018/%E5%8D%83%E5%AF%BB%E6%A1%86%E6%9E%B6) | [👉对接说明文档👀](docs/qianxun.md)
* 具体配置查看 `config.yaml` 文件注释说明
* ![img](docs/qianxun.png)
* [x] [VLW框架](https://github.com/yqchilde/wxbot)
* 具体配置查看 `config.yaml` 文件注释说明
* ![img](docs/vlw.png)
Expand Down Expand Up @@ -393,7 +390,7 @@ import (

* 非Hook版机器人核心由 [openwechat](https://github.com/eatmoreapple/openwechat) SDK实现,在`nohook`分支,已暂停维护

* Hook版机器人框架我使用的是 ~~《我的框架》已跑路~~,现在用的是千寻,为hook分支
* Hook版机器人框架我使用的是 ~~《我的框架》已跑路~~,现在用的是~~千寻~~,Dean DLL,为hook分支

* hook分支大量借鉴了一个十分优秀的项目`ZeroBot-Plugin`的设计方案 👍🏻,其中很多基础代码来自`ZeroBot-Plugin`,在此基础上扩展了支持`wechat`的方式,非常感谢,Thanks♪(・ω・)ノ

Expand Down
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ serverAddress: "http://192.168.31.12:9528"

# 接入框架配置
framework:
# 框架选择,可选 千寻、VLW、Dean
# 框架选择,可选 Dean、VLW
name: "Dean"
# wxbot主动请求微信框架的地址,比如:http://[运行千寻的服务器ip]:[千寻的HTTP端口]
# wxbot主动请求微信框架的地址,比如:http://[运行Dean的服务器ip]:[Dean的HTTP端口]
apiUrl: "http://192.168.31.8:9527"
# VX框架HTTP鉴权Token (千寻目前没有,vlw需要)
# VX框架HTTP鉴权Token (Dean目前没有,vlw需要)
apiToken: ""
2 changes: 1 addition & 1 deletion engine/robot/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (ctx *Ctx) MessageString() string {
ctx.message = ctx.Event.Message.Content
} else {
switch bot.config.Framework.Name {
case "千寻", "qianxun", "Dean":
case "Dean":
ctx.message = strings.TrimPrefix(ctx.Event.Message.Content, "@"+bot.self.Nick)
ctx.message = strings.TrimSpace(ctx.message)
case "VLW", "vlw":
Expand Down
8 changes: 4 additions & 4 deletions engine/robot/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ serverAddress: "http://192.168.31.12:9528"
# 接入框架配置
framework:
# 框架选择,可选 千寻、VLW、Dean
name: "千寻"
# wxbot主动请求微信框架的地址,比如:http://[运行千寻的服务器ip]:[千寻的HTTP端口]
# 框架选择,可选 Dean、VLW
name: "Dean"
# wxbot主动请求微信框架的地址,比如:http://[运行Dean的服务器ip]:[Dean的HTTP端口]
apiUrl: "http://192.168.31.8:9527"
# VX框架HTTP鉴权Token (千寻目前没有,vlw需要)
# VX框架HTTP鉴权Token (Dean目前没有,vlw需要)
apiToken: ""
`

Expand Down
3 changes: 0 additions & 3 deletions framework/qianxun/README.md

This file was deleted.

253 changes: 0 additions & 253 deletions framework/qianxun/callback.go

This file was deleted.

Loading

0 comments on commit 4521ca4

Please sign in to comment.