txlyre il y a 2 ans
Parent
commit
a72baed3ac
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      commands.py

+ 5 - 0
commands.py

@@ -217,6 +217,11 @@ async def bday_handler(bot, event, command):
 
       return
 
+    if date >= datetime.now():
+      await event.reply('День рождения не может быть в будущем...')
+
+      return
+
     if await add_or_update_birthday(get_peer_id(event.peer_id), event.sender, date):
       await event.reply('День рождения успешно добавлен!!!')
     else: