From 3b277b0eb08ba91ab1e566695cf7284bd891c3f4 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: Fri, 6 May 2022 18:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E5=9B=BE=20drop=20yandex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/saucenao/searcher.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index 5f74f981..9148780a 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -12,7 +12,6 @@ import ( "github.com/FloatTech/AnimeAPI/ascii2d" "github.com/FloatTech/AnimeAPI/pixiv" "github.com/FloatTech/AnimeAPI/saucenao" - "github.com/FloatTech/AnimeAPI/yandex" "github.com/FloatTech/zbputils/control" "github.com/FloatTech/zbputils/ctxext" @@ -107,22 +106,7 @@ func init() { // 插件主体 ) continue } - if result, err := yandex.Yandex(pic); err != nil { - ctx.SendChain(message.Text("ERROR:", err)) - } else { - ctx.SendChain( - message.Text("也许是这个?"), - message.Text( - "\n", - "标题:", result.Title, "\n", - "插画ID:", result.Pid, "\n", - "画师:", result.UserName, "\n", - "画师ID:", result.UserId, "\n", - "直链:", "https://pixivel.moe/detail?id=", result.Pid, - ), - ) - } - // 不论结果如何都执行 ascii2d 搜索 + // ascii2d 搜索 if result, err := ascii2d.Ascii2d(pic); err != nil { ctx.SendChain(message.Text("ERROR:", err)) continue