mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
为 #原图 功能增加30s后自动撤回 (#412)
This commit is contained in:
parent
ee530c0725
commit
b3097ad58f
@ -24,7 +24,7 @@ export async function getOriginalPicture (e) {
|
|||||||
if (source) {
|
if (source) {
|
||||||
let imgPath = await redis.get(`miao:original-picture:${source.message_id}`)
|
let imgPath = await redis.get(`miao:original-picture:${source.message_id}`)
|
||||||
if (imgPath) {
|
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
|
return true
|
||||||
}
|
}
|
||||||
if (source.time) {
|
if (source.time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user