fix: 修正消息清理逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-25 03:13:06 +08:00
committed by cnb
parent d980053959
commit 6702649cac
7 changed files with 16 additions and 11 deletions

View File

@@ -59,7 +59,8 @@ func init() {
// 发送图片zeroBot 标准方式)
// ======================
msg := ctx.Send(message.ImageBytes(buf.Bytes()))
cool.Cron.AfterFunc(10*time.Second, func() {
cool.Cron.AfterFunc(20*time.Second, func() {
ctx.DeleteMessage(ctx.Event.MessageID)
ctx.DeleteMessage(msg)
})
})