mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 pref: 优化哔哩哔哩音乐发送逻辑
This commit is contained in:
parent
ad7babcd48
commit
68fb486a78
@ -572,10 +572,11 @@ export class tools extends plugin {
|
||||
const videoId = /video\/[^\?\/ ]+/.exec(url)[0].split("/")[1];
|
||||
getBiliAudio(videoId, "").then(async audioUrl => {
|
||||
const path = this.getCurDownloadPath(e);
|
||||
const biliMusicPath = await m4sToMp3(audioUrl, path)
|
||||
// 发送语音
|
||||
e.reply(segment.record(await m4sToMp3(audioUrl, path)));
|
||||
e.reply(segment.record(biliMusicPath));
|
||||
// 上传群文件
|
||||
await this.uploadGroupFile(e, path);
|
||||
await this.uploadGroupFile(e, biliMusicPath);
|
||||
})
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user