🎈 pref: 优化哔哩哔哩直播分享细节

This commit is contained in:
zhiyu1998 2024-07-21 16:57:09 +08:00
parent 6acc6df0b7
commit 3ee7366b41

View File

@ -484,9 +484,13 @@ export class tools extends plugin {
// logger.info(streamId)
// 提取相关信息
const liveData = await this.getBiliStream(streamId);
// logger.info(liveData);
const { title, user_cover, description, tags } = liveData.data.data;
e.reply([segment.image(user_cover), `直播间:${ title }\n\n简述:${ description }\n标签:${ tags }`]);
logger.info(liveData);
const { title, user_cover, keyframe, description, tags } = liveData.data.data;
e.reply([
segment.image(user_cover),
segment.image(keyframe),
`识别:哔哩哔哩直播,${title}${description ? `\n\n简述:${description}\n` : ''}${tags ? `标签:${tags}\n` : ''}`
]);
return true;
}
// 处理专栏