mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 更新README & 加强搜书风控
This commit is contained in:
parent
1fdc4a65a6
commit
74dbd1f1d4
@ -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/
|
||||
```
|
||||
|
||||
|
||||
|
@ -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))
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user