mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-22 08:10:09 +08:00
✏️ 根据 PID 搜图增加删图判断
This commit is contained in:
parent
843c77e9ba
commit
be49ba83b3
@ -27,6 +27,7 @@ func init() { // 插件主体
|
|||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if illust.Pid > 0 {
|
||||||
// 改用 i.pixiv.cat 镜像站
|
// 改用 i.pixiv.cat 镜像站
|
||||||
link := illust.ImageUrls
|
link := illust.ImageUrls
|
||||||
link = strings.ReplaceAll(link, "i.pximg.net", "i.pixiv.cat")
|
link = strings.ReplaceAll(link, "i.pximg.net", "i.pixiv.cat")
|
||||||
@ -42,6 +43,9 @@ func init() { // 插件主体
|
|||||||
"直链:", "https://pixivel.moe/detail?id=", illust.Pid,
|
"直链:", "https://pixivel.moe/detail?id=", illust.Pid,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
ctx.Send("图片不存在!")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// 以图搜图
|
// 以图搜图
|
||||||
zero.OnKeywordGroup([]string{"以图搜图", "搜索图片", "以图识图"}, picture.CmdMatch, picture.MustGiven).SetBlock(true).FirstPriority().
|
zero.OnKeywordGroup([]string{"以图搜图", "搜索图片", "以图识图"}, picture.CmdMatch, picture.MustGiven).SetBlock(true).FirstPriority().
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user