User bans, emoji and other bug fixes, age limiter, etc #26

Merged
profitroll merged 31 commits from dev into master 2023-01-31 15:26:56 +02:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 7feaa7af56 - Show all commits

View File

@ -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))))
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")
await msg.reply_text(locale("question2_joke", "message", locale=self.locale), reply_markup=ForceReply(placeholder=str(locale("question2", "force_reply", locale=self.locale))))
return

View File

@ -3,6 +3,7 @@
"debug": false,
"owner": 0,
"age_allowed": 0,
"age_maximum": 70,
"api": "http://example.com",
"inline_preview_count": 7,
"remove_application_time": -1,