Skip to content

Commit 27e69ef

Browse files
committed
yandex与ascii2d并行
1 parent 6262aab commit 27e69ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugin/saucenao/searcher.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ func init() { // 插件主体
111111
if result, err := yandex.Yandex(pic); err != nil {
112112
ctx.SendChain(message.Text("ERROR: ", err))
113113
} else {
114-
// 返回SauceNAO的结果
115114
ctx.SendChain(
116-
message.Text("我有把握是这个!"),
115+
message.Text("也许是这个?"),
117116
message.Text(
118117
"\n",
119118
"标题:", result.Title, "\n",
@@ -123,8 +122,8 @@ func init() { // 插件主体
123122
"直链:", "https://pixivel.moe/detail?id=", result.Pid,
124123
),
125124
)
126-
continue
127125
}
126+
// 不论结果如何都执行 ascii2d 搜索
128127
if result, err := ascii2d.Ascii2d(pic); err != nil {
129128
ctx.SendChain(message.Text("ERROR: ", err))
130129
continue

0 commit comments

Comments
 (0)