From 2f0740756b98a5d68f39e553290c2beceaebde59 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Thu, 17 Oct 2024 10:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=A8=B3=E5=AE=9A=E7=9A=84=E9=AA=8C=E8=BD=A6?= =?UTF-8?q?=EF=BC=8C=E6=94=BE=E5=88=B0=E8=A1=A5=E9=9B=86=E5=8F=AF=E8=87=AA?= =?UTF-8?q?=E8=A1=8C=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 44 ++++---------------------------------------- 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 928a330..445f4cd 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -9,6 +9,7 @@ import PQueue from 'p-queue'; import path from "path"; import qrcode from "qrcode" import querystring from "querystring"; +import puppeteer from "../../../lib/puppeteer/puppeteer.js"; import { BILI_CDN_SELECT_LIST, BILI_DEFAULT_INTRO_LEN_LIMIT, @@ -30,7 +31,9 @@ import { ANIME_SERIES_SEARCH_LINK, ANIME_SERIES_SEARCH_LINK2, BILI_ARTICLE_INFO, - BILI_EP_INFO, BILI_NAV, BILI_NAV_STAT, + BILI_EP_INFO, + BILI_NAV, + BILI_NAV_STAT, BILI_ONLINE, BILI_SSID_INFO, BILI_STREAM_FLV, @@ -103,7 +106,6 @@ import Translate from "../utils/trans-strategy.js"; import { mid2id } from "../utils/weibo.js"; import { ytDlpGetTilt, ytDlpHelper } from "../utils/yt-dlp-util.js"; import { textArrayToMakeForward } from "../utils/yunzai-util.js"; -import puppeteer from "../../../lib/puppeteer/puppeteer.js"; export class tools extends plugin { /** @@ -220,10 +222,6 @@ export class tools extends plugin { reg: "tieba.baidu.com", fnc: "tieba" }, - { - reg: '^#验车(.*?)', - fnc: 'yc' - }, { reg: "^#(网易状态|rns|RNS)$", fnc: "neteaseStatus", @@ -2472,40 +2470,6 @@ export class tools extends plugin { return true; } - async yc(e) { - if (!(await this.isTrustUser(e.user_id))) { - e.reply("你没有权限使用此命令"); - return; - } - - const tag = e.msg.replace(/#验车/g, ""); - - const reqUrl = `https://whatslink.info/api/v1/link?url=${ tag }`; - const resp = await axios.get(reqUrl, { - headers: { - "User-Agent": COMMON_USER_AGENT, - } - }); - if (!resp.data) { - e.reply("没有找到相关磁力"); - return; - } - await e.reply(`🧲 [R插件 x Mix] 联合为您验车:\n${ resp.data.name }`, false, { recallMsg: MESSAGE_RECALL_TIME }); - if (resp.data?.screenshots === null) { - e.reply("没有找到相关媒体"); - return; - } - const screenshots = resp.data.screenshots.map(item => { - const screenshot = item.screenshot; - return { - message: segment.image(screenshot), - nickname: this.e.sender.card || this.e.user_id, - user_id: this.e.user_id, - } - }); - e.reply(Bot.makeForwardMsg(screenshots), false, { recallMsg: MESSAGE_RECALL_TIME }); - } - /** * 哔哩哔哩下载 * @param title