From ef8a284498d33ba819569c0c41ff085e58cb9a92 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Mon, 24 Feb 2020 23:35:21 +0800 Subject: [PATCH] feat(core): attach time to send event --- packages/koishi-core/src/sender.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/koishi-core/src/sender.ts b/packages/koishi-core/src/sender.ts index 45e642c718..b607da8b24 100644 --- a/packages/koishi-core/src/sender.ts +++ b/packages/koishi-core/src/sender.ts @@ -116,6 +116,7 @@ export class Sender { postType: 'send', userId: this.app.selfId, [$ctxType + 'Id']: $ctxId, + time: Math.round(Date.now() / 1000), } as Meta<'send'> }