为 #原图 功能增加30s后自动撤回 (#412)

This commit is contained in:
SanqianQVQ 2023-01-21 13:06:05 +08:00 committed by GitHub
parent ee530c0725
commit b3097ad58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ export async function getOriginalPicture (e) {
if (source) {
let imgPath = await redis.get(`miao:original-picture:${source.message_id}`)
if (imgPath) {
e.reply([segment.image(process.cwd() + '/plugins/miao-plugin/resources/' + decodeURIComponent(imgPath))])
e.reply([segment.image(process.cwd() + '/plugins/miao-plugin/resources/' + decodeURIComponent(imgPath))], false, { recallMsg: 30 })
return true
}
if (source.time) {