mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
optimize: saucenao head
This commit is contained in:
parent
6e54d214f0
commit
f4e9d3e4dd
@ -8,6 +8,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/fumiama/terasu/http2"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
zero "github.com/wdvxdr1123/ZeroBot"
|
zero "github.com/wdvxdr1123/ZeroBot"
|
||||||
"github.com/wdvxdr1123/ZeroBot/message"
|
"github.com/wdvxdr1123/ZeroBot/message"
|
||||||
@ -134,7 +135,7 @@ func init() { // 插件主体
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
resp, err := http.Head(result.Header.Thumbnail)
|
resp, err := http2.Head(result.Header.Thumbnail)
|
||||||
msg := make(message.Message, 0, 3)
|
msg := make(message.Message, 0, 3)
|
||||||
if s > 80.0 {
|
if s > 80.0 {
|
||||||
msg = append(msg, message.Text("我有把握是这个!"))
|
msg = append(msg, message.Text("我有把握是这个!"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user