This commit closes #14
This commit is contained in:
parent
834157030c
commit
7feaa7af56
@ -330,7 +330,7 @@ class HoloUser():
|
|||||||
await msg.reply_text(locale(f"question2_invalid", "message", locale=self.locale), reply_markup=ForceReply(placeholder=str(locale(f"question{stage}", "force_reply", locale=self.locale))))
|
await msg.reply_text(locale(f"question2_invalid", "message", locale=self.locale), reply_markup=ForceReply(placeholder=str(locale(f"question{stage}", "force_reply", locale=self.locale))))
|
||||||
return
|
return
|
||||||
|
|
||||||
if datetime.now() <= input_dt:
|
if (datetime.now() <= input_dt) or ((datetime.now() - input_dt).days) > ((datetime.now() - datetime.now().replace(year=datetime.now().year - configGet("age_maximum"))).days):
|
||||||
logWrite(f"User {msg.from_user.id} failed stage {stage} due to joking")
|
logWrite(f"User {msg.from_user.id} failed stage {stage} due to joking")
|
||||||
await msg.reply_text(locale("question2_joke", "message", locale=self.locale), reply_markup=ForceReply(placeholder=str(locale("question2", "force_reply", locale=self.locale))))
|
await msg.reply_text(locale("question2_joke", "message", locale=self.locale), reply_markup=ForceReply(placeholder=str(locale("question2", "force_reply", locale=self.locale))))
|
||||||
return
|
return
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"debug": false,
|
"debug": false,
|
||||||
"owner": 0,
|
"owner": 0,
|
||||||
"age_allowed": 0,
|
"age_allowed": 0,
|
||||||
|
"age_maximum": 70,
|
||||||
"api": "http://example.com",
|
"api": "http://example.com",
|
||||||
"inline_preview_count": 7,
|
"inline_preview_count": 7,
|
||||||
"remove_application_time": -1,
|
"remove_application_time": -1,
|
||||||
|
Reference in New Issue
Block a user