mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✨ 完善私聊获取图片
This commit is contained in:
parent
1d2960a51c
commit
f0fd1eaf22
@ -89,7 +89,7 @@ func init() { // 插件主体
|
|||||||
zero.OnRegex(`^给你点提示哦:(.*)$`, zero.OnlyPrivate).SetBlock(true).SetPriority(20).
|
zero.OnRegex(`^给你点提示哦:(.*)$`, zero.OnlyPrivate).SetBlock(true).SetPriority(20).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
dhash := ctx.State["regex_matched"].([]string)[1]
|
dhash := ctx.State["regex_matched"].([]string)[1]
|
||||||
if len(dhash) == 5 {
|
if len(dhash) == 5*3 {
|
||||||
ctx.Send(message.Image(apihead + dhash))
|
ctx.Send(message.Image(apihead + dhash))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user