📃 docs: 修改搜书提示

This commit is contained in:
zhiyu1998 2023-04-11 12:39:33 +08:00
parent 106e71cfc7
commit c062229ff1
2 changed files with 5 additions and 5 deletions

View File

@ -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("搜书正在施工🚧");

View File

@ -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 => {