mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复 bodian 无法发送的问题
This commit is contained in:
parent
bde8ad7992
commit
faa18a5451
@ -945,12 +945,13 @@ export class tools extends plugin {
|
|||||||
]);
|
]);
|
||||||
if (e.msg.includes("musicId")) {
|
if (e.msg.includes("musicId")) {
|
||||||
const path = `${ this.getCurDownloadPath(e) }`;
|
const path = `${ this.getCurDownloadPath(e) }`;
|
||||||
await getBodianAudio(id, path).then(_ => {
|
await getBodianAudio(id, path).then(async sendPath => {
|
||||||
Bot.acquireGfs(e.group_id).upload(
|
// 发送语音
|
||||||
fs.readFileSync(path + "/temp.mp3"),
|
await e.reply(segment.record(sendPath));
|
||||||
"/",
|
// 上传群文件
|
||||||
`${ name }-${ album }-${ artist }.mp3`,
|
await this.uploadGroupFile(e, sendPath);
|
||||||
);
|
// 删除文件
|
||||||
|
await checkAndRemoveFile(sendPath);
|
||||||
});
|
});
|
||||||
} else if (e.msg.includes("mvId")) {
|
} else if (e.msg.includes("mvId")) {
|
||||||
await getBodianMv(id).then(res => {
|
await getBodianMv(id).then(res => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user