mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
📃 docs: 修改搜书提示
This commit is contained in:
parent
106e71cfc7
commit
c062229ff1
@ -344,7 +344,7 @@ export class query extends plugin {
|
||||
async searchBookById(e) {
|
||||
let keyword = e.msg.replace(/#bookid/, "").trim();
|
||||
if (_.isEmpty(keyword)) {
|
||||
e.reply(`请输入书名,例如:#搜书 12`);
|
||||
e.reply(`请输入书名,例如:#bookid 13366067`);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -357,7 +357,7 @@ export class query extends plugin {
|
||||
}
|
||||
try {
|
||||
const res = await getBookDetail(e, id, source);
|
||||
await this.reply(await Bot.makeForwardMsg(res));
|
||||
e.reply(await Bot.makeForwardMsg(res));
|
||||
} catch (err) {
|
||||
logger.error(err);
|
||||
e.reply("搜书正在施工🚧");
|
||||
|
@ -178,7 +178,7 @@ async function getZHelper(e, keyword) {
|
||||
* @param e
|
||||
* @param id
|
||||
* @param source
|
||||
* @returns {Promise<AxiosResponse<any>>}
|
||||
* @returns {Promise<Array>}
|
||||
*/
|
||||
async function getBookDetail(e, id, source) {
|
||||
return axios
|
||||
@ -215,8 +215,8 @@ async function getBookDetail(e, id, source) {
|
||||
const cleverPass = `https://rapidupload.1kbtool.com/${reqUrl}`;
|
||||
const cleverPass2 = `https://rulite.1kbtool.com/${reqUrl}`;
|
||||
return [
|
||||
`Libgen:${Libgen}`,
|
||||
`ipfs:${ipfs}`,
|
||||
// `Libgen:${Libgen}`,
|
||||
// `ipfs:${ipfs}`,
|
||||
`秒传:${cleverPass}`,
|
||||
`秒传Lite:${cleverPass2}`,
|
||||
].map(item => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user