Skip to content

Commit

Permalink
微调
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red authored May 13, 2022
1 parent 16697ad commit cab611a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin/saucenao/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ func init() { // 插件主体
}
})
resp, err := http.Head(result.Header.Thumbnail)
// msg := make(message.Message, 0, 3)
msg := message.Message{ctxext.FakeSenderForwardNode(ctx, message.Text("搜图结果"))}
msg := make(message.Message, 0, 3)
if s > 0.8 {
msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("我有把握是这个!")))
} else {
Expand All @@ -141,7 +140,7 @@ func init() { // 插件主体
} else {
msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Image(pic)))
}
msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("\n图源: ", result.Header.IndexName, binary.BytesToString(b))))
msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("图源: ", result.Header.IndexName, binary.BytesToString(b))))
if id := ctx.SendGroupForwardMessage(
ctx.Event.GroupID,
msg,
Expand Down

0 comments on commit cab611a

Please sign in to comment.