🎈 pref: 优化哔哩哔哩音乐发送逻辑

This commit is contained in:
zhiyu1998 2024-07-14 13:03:11 +08:00
parent bb22e8da24
commit ad7babcd48

View File

@ -572,7 +572,10 @@ export class tools extends plugin {
const videoId = /video\/[^\?\/ ]+/.exec(url)[0].split("/")[1];
getBiliAudio(videoId, "").then(async audioUrl => {
const path = this.getCurDownloadPath(e);
// 发送语音
e.reply(segment.record(await m4sToMp3(audioUrl, path)));
// 上传群文件
await this.uploadGroupFile(e, path);
})
return true
}