Skip to content

Commit

Permalink
✨ 新增 搜番 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Nov 3, 2021
1 parent f0c8069 commit fb80c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ zerobot -h -t token -u url [-d|w] [-g] qq1 qq2 qq3 ...
- **搜图** `import _ "github.com/FloatTech/ZeroBot-Plugin/plugin_saucenao"`
- [x] 以图搜图|搜索图片|以图识图[图片]
- [x] 搜图[P站图片ID]
- **搜番** `import _ "github.com/FloatTech/ZeroBot-Plugin/plugin_tracemoe"`
- [x] 搜番|搜索番剧[图片]
- **随机图片与AI点评** `github.com/FloatTech/ZeroBot-Plugin/plugin_acgimage`
- [x] 随机图片(评级大于6的图将私发)
- [x] 直接随机(无r18检测,务必小心,仅管理可用)
Expand Down
4 changes: 2 additions & 2 deletions plugin_tracemoe/moe.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ var (
func init() { // 插件主体
engine := control.Register("tracemoe", &control.Options{
DisableOnDefault: false,
Help: "搜图\n- 搜番|搜索番剧[图片]",
Help: "tracemoe\n- 搜番|搜索番剧[图片]",
})
// 以图搜图
engine.OnKeywordGroup([]string{"搜番", "搜索番剧"}, picture.CmdMatch, picture.MustGiven).SetBlock(true).FirstPriority().
engine.OnKeywordGroup([]string{"搜番", "搜索番剧"}, picture.CmdMatch, picture.MustGiven).SetBlock(true).ThirdPriority().
Handle(func(ctx *zero.Ctx) {
// 开始搜索图片
ctx.SendChain(message.Text("少女祈祷中......"))
Expand Down

0 comments on commit fb80c36

Please sign in to comment.