mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🎨 添加自动签到创建时间
This commit is contained in:
parent
462013ac1e
commit
a6e6421ef8
@ -102,7 +102,8 @@ class Sign(BasePlugins):
|
||||
elif method == "关闭":
|
||||
return "您还没有开启自动签到"
|
||||
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)
|
||||
return "开启自动签到成功"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user