From 68fb486a781e2d63a889224412f52e64c06d4360 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sun, 14 Jul 2024 13:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=E9=9F=B3=E4=B9=90=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 255ed8b..314ebb1 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -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 }