From 74dbd1f1d46ffbf0627e448395bbecb10a17f8a3 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Wed, 8 Mar 2023 22:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E6=9B=B4=E6=96=B0README?= =?UTF-8?q?=20&=20=E5=8A=A0=E5=BC=BA=E6=90=9C=E4=B9=A6=E9=A3=8E=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- apps/query.js | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0c8689c..d151f9e 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ git clone https://gitee.com/kyrzy0416/rconsole-plugin.git ./plugins/rconsole-plu ```shell -pnpm i -P --prefix .\plugins\rconsole-plugin\ +pnpm i -P --prefix ./plugins/rconsole-plugin/ ``` diff --git a/apps/query.js b/apps/query.js index 96459a9..096ff63 100644 --- a/apps/query.js +++ b/apps/query.js @@ -545,7 +545,7 @@ export class query extends plugin { id: id, source: source || "zlibrary", }) - .then(resp => { + .then(async resp => { const { author, extension, @@ -564,12 +564,19 @@ export class query extends plugin { const reqUrl = `${md5}#${filesize}#${encodeURIComponent(title)}_${encodeURIComponent(author)}_${id}_${source}-search.${extension}`; const cleverPass = `https://rapidupload.1kbtool.com/${reqUrl}`; const cleverPass2 = `https://rulite.1kbtool.com/${reqUrl}`; - e.reply( - `方式1:${Libgen}\n\n` + - `方式2:${ipfs}\n\n` + - `方式3:${cleverPass}\n\n` + + let bookMethods = [ + `方式1:${Libgen}`, + `方式2:${ipfs}`, + `方式3:${cleverPass}`, `方式4:${cleverPass2}`, - ); + ].map(item => { + return { + message: {type: "text", text: item}, + nickname: this.e.sender.card || this.e.user_id, + user_id: this.e.user_id, + } + }) + await this.reply(await Bot.makeForwardMsg(bookMethods)) }); }