diff --git a/src/plugins/auto_reply/index.ts b/src/plugins/auto_reply/index.ts index 0394b22..69d0713 100644 --- a/src/plugins/auto_reply/index.ts +++ b/src/plugins/auto_reply/index.ts @@ -111,7 +111,7 @@ const handleReply = async (app: App, msg: Message) => { msg.chat.id, getSample(rep).replaceAll(/\${(\w*)}/g, (_, s: string) => vars[s]) ); - usrdb.last_reply[msg.chat.id] = msgdate.unix(); + usrdb.last_reply[msg.chat.id] = msg.date; }; const init: PluginInit = (init_app) => {