🐞 fix: 更新README & 加强搜书风控

This commit is contained in:
zhiyu1998 2023-03-08 22:36:22 +08:00
parent 1fdc4a65a6
commit 74dbd1f1d4
2 changed files with 14 additions and 7 deletions

View File

@ -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/
```

View File

@ -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))
});
}