🎨 添加自动签到创建时间

This commit is contained in:
洛水居室 2022-09-02 15:32:17 +08:00
parent 462013ac1e
commit a6e6421ef8
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -102,7 +102,8 @@ class Sign(BasePlugins):
elif method == "关闭": elif method == "关闭":
return "您还没有开启自动签到" return "您还没有开启自动签到"
elif method == "开启": elif method == "开启":
user = SignUser(user_id=user_id, chat_id=chat_id, status=SignStatusEnum.STATUS_SUCCESS) user = SignUser(user_id=user_id, chat_id=chat_id, time_created=datetime.datetime.now(),
status=SignStatusEnum.STATUS_SUCCESS)
await self.sign_service.add(user) await self.sign_service.add(user)
return "开启自动签到成功" return "开启自动签到成功"