From 557251a6798ae034e9c64946180936a2b0a65a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 16 May 2022 22:44:47 +0800 Subject: [PATCH] =?UTF-8?q?saucenao=20=E6=90=9C=E5=9B=BE=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=90=88=E5=B9=B6=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/saucenao/searcher.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index d231b202..23bea645 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -94,8 +94,15 @@ func init() { // 插件主体 "直链: ", "https://pixivel.moe/detail?id=", illust.Pid, ) if imgs != nil { - // 发送搜索结果 - ctx.Send(append(imgs, message.Text("\n"), txt)) + if zero.OnlyGroup(ctx) { + ctx.SendGroupForwardMessage(ctx.Event.GroupID, message.Message{ + ctxext.FakeSenderForwardNode(ctx, txt), + ctxext.FakeSenderForwardNode(ctx, imgs...), + }) + } else { + // 发送搜索结果 + ctx.Send(append(imgs, message.Text("\n"), txt)) + } } else { // 图片下载失败,仅发送文字结果 ctx.SendChain(txt)