mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 perf: 更新小红书逻辑
This commit is contained in:
parent
527ed23612
commit
1e3ecd5efc
@ -535,8 +535,10 @@ export class tools extends plugin {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
let path = []
|
||||||
const images = await Promise.all(imagesPath).then(paths => {
|
const images = await Promise.all(imagesPath).then(paths => {
|
||||||
return paths.map(item => {
|
return paths.map(item => {
|
||||||
|
path.push(item)
|
||||||
return {
|
return {
|
||||||
message: segment.image(fs.readFileSync(item)),
|
message: segment.image(fs.readFileSync(item)),
|
||||||
nickname: e.sender.card || e.user_id,
|
nickname: e.sender.card || e.user_id,
|
||||||
@ -545,6 +547,10 @@ export class tools extends plugin {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
await this.reply(await Bot.makeForwardMsg(images));
|
await this.reply(await Bot.makeForwardMsg(images));
|
||||||
|
// 清理文件
|
||||||
|
path.forEach(item => {
|
||||||
|
fs.fs.unlinkSync(item);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user