mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-12-05 18:01:56 +00:00
๐ pref: ไผๅ ๅๅฉๅๅฉ ไธๆ ๅ้้ป่พ && ไผๅ็ดๆญๅ็
This commit is contained in:
parent
e285ab042e
commit
236b241fdf
@ -717,13 +717,13 @@ export class tools extends plugin {
|
|||||||
*/
|
*/
|
||||||
async biliArticle(e) {
|
async biliArticle(e) {
|
||||||
const cvid = e.msg.match(/read\/cv(\d+)/)?.[1];
|
const cvid = e.msg.match(/read\/cv(\d+)/)?.[1];
|
||||||
logger.info(BILI_ARTICLE_INFO.replace("{}", cvid));
|
|
||||||
const articleResp = await fetch(BILI_ARTICLE_INFO.replace("{}", cvid), {
|
const articleResp = await fetch(BILI_ARTICLE_INFO.replace("{}", cvid), {
|
||||||
headers: BILI_HEADER
|
headers: {
|
||||||
|
...BILI_HEADER
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const articleData = (await articleResp.json()).data;
|
const articleData = (await articleResp.json()).data;
|
||||||
const { title, author_name, origin_image_urls } = articleData;
|
const { origin_image_urls } = articleData;
|
||||||
e.reply(`${ this.identifyPrefix }่ฏๅซ๏ผๅๅฉๅๅฉไธๆ ๏ผ${ title }-${ author_name }\n`);
|
|
||||||
if (origin_image_urls) {
|
if (origin_image_urls) {
|
||||||
await e.reply(Bot.makeForwardMsg(origin_image_urls.map(item => {
|
await e.reply(Bot.makeForwardMsg(origin_image_urls.map(item => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loadingโฆ
x
Reference in New Issue
Block a user