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
bb22e8da24
commit
ad7babcd48
@ -572,7 +572,10 @@ export class tools extends plugin {
|
|||||||
const videoId = /video\/[^\?\/ ]+/.exec(url)[0].split("/")[1];
|
const videoId = /video\/[^\?\/ ]+/.exec(url)[0].split("/")[1];
|
||||||
getBiliAudio(videoId, "").then(async audioUrl => {
|
getBiliAudio(videoId, "").then(async audioUrl => {
|
||||||
const path = this.getCurDownloadPath(e);
|
const path = this.getCurDownloadPath(e);
|
||||||
|
// 发送语音
|
||||||
e.reply(segment.record(await m4sToMp3(audioUrl, path)));
|
e.reply(segment.record(await m4sToMp3(audioUrl, path)));
|
||||||
|
// 上传群文件
|
||||||
|
await this.uploadGroupFile(e, path);
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user