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

@@ -36,6 +36,7 @@ func init() {
msg := ctx.Send(strings.Join(cdks, "\n"))
cool.Cron.AfterFunc(10*time.Second, func() {
ctx.DeleteMessage(ctx.Event.MessageID)
ctx.DeleteMessage(msg)
})
}