mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 去除暂时稳定的验车,放到补集可自行下载
This commit is contained in:
parent
76d5d765aa
commit
2f0740756b
@ -9,6 +9,7 @@ import PQueue from 'p-queue';
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import qrcode from "qrcode"
|
import qrcode from "qrcode"
|
||||||
import querystring from "querystring";
|
import querystring from "querystring";
|
||||||
|
import puppeteer from "../../../lib/puppeteer/puppeteer.js";
|
||||||
import {
|
import {
|
||||||
BILI_CDN_SELECT_LIST,
|
BILI_CDN_SELECT_LIST,
|
||||||
BILI_DEFAULT_INTRO_LEN_LIMIT,
|
BILI_DEFAULT_INTRO_LEN_LIMIT,
|
||||||
@ -30,7 +31,9 @@ import {
|
|||||||
ANIME_SERIES_SEARCH_LINK,
|
ANIME_SERIES_SEARCH_LINK,
|
||||||
ANIME_SERIES_SEARCH_LINK2,
|
ANIME_SERIES_SEARCH_LINK2,
|
||||||
BILI_ARTICLE_INFO,
|
BILI_ARTICLE_INFO,
|
||||||
BILI_EP_INFO, BILI_NAV, BILI_NAV_STAT,
|
BILI_EP_INFO,
|
||||||
|
BILI_NAV,
|
||||||
|
BILI_NAV_STAT,
|
||||||
BILI_ONLINE,
|
BILI_ONLINE,
|
||||||
BILI_SSID_INFO,
|
BILI_SSID_INFO,
|
||||||
BILI_STREAM_FLV,
|
BILI_STREAM_FLV,
|
||||||
@ -103,7 +106,6 @@ import Translate from "../utils/trans-strategy.js";
|
|||||||
import { mid2id } from "../utils/weibo.js";
|
import { mid2id } from "../utils/weibo.js";
|
||||||
import { ytDlpGetTilt, ytDlpHelper } from "../utils/yt-dlp-util.js";
|
import { ytDlpGetTilt, ytDlpHelper } from "../utils/yt-dlp-util.js";
|
||||||
import { textArrayToMakeForward } from "../utils/yunzai-util.js";
|
import { textArrayToMakeForward } from "../utils/yunzai-util.js";
|
||||||
import puppeteer from "../../../lib/puppeteer/puppeteer.js";
|
|
||||||
|
|
||||||
export class tools extends plugin {
|
export class tools extends plugin {
|
||||||
/**
|
/**
|
||||||
@ -220,10 +222,6 @@ export class tools extends plugin {
|
|||||||
reg: "tieba.baidu.com",
|
reg: "tieba.baidu.com",
|
||||||
fnc: "tieba"
|
fnc: "tieba"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
reg: '^#验车(.*?)',
|
|
||||||
fnc: 'yc'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
reg: "^#(网易状态|rns|RNS)$",
|
reg: "^#(网易状态|rns|RNS)$",
|
||||||
fnc: "neteaseStatus",
|
fnc: "neteaseStatus",
|
||||||
@ -2472,40 +2470,6 @@ export class tools extends plugin {
|
|||||||
return true;
|
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
|
* @param title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user