Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lianhong2758 committed Nov 25, 2024
1 parent 587872c commit c5ac521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/pixiv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func init() {
_ = os.MkdirAll(en.DataFolder+"cache", 0755)
}

en.OnRex(`^/搜图\s*(\d+)$`).MUL("ob11").Handle(func(ctx *rosm.Ctx) {
en.OnRex(`^/搜图\s*(\d+)$`).MUL(ob11.BotType).Handle(func(ctx *rosm.Ctx) {
id, _ := strconv.ParseInt(ctx.Being.ResultWord[1], 10, 64)
ctx.Send(message.Text("雪儿正在寻找中......"))
// 获取P站插图信息
Expand Down Expand Up @@ -88,7 +88,7 @@ func init() {
ctx.Send(message.Text("图片不存在呜..."))
}
})
en.OnWord("以图搜图", "以图识图").MUL("ob11").Handle(func(ctx *rosm.Ctx) {
en.OnWord("以图搜图", "以图识图").MUL(ob11.BotType).Handle(func(ctx *rosm.Ctx) {
pics := GetMustPic(ctx)
if len(pics) == 0 {
ctx.Send(message.Text("雪儿没有收到图片唔..."))
Expand Down

0 comments on commit c5ac521

Please sign in to comment.