Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
e950685
1
Parent(s):
3d6e111
Update birthday.py
Browse files
Powers/plugins/birthday.py
CHANGED
@@ -57,7 +57,7 @@ async def remember_me(c: Gojo, m: Message):
|
|
57 |
if len(DOB) != 3 and len(DOB) != 2:
|
58 |
await m.reply_text("DOB should be in format of dd/mm/yyyy\nYear is optional it is not necessary to pass it")
|
59 |
return
|
60 |
-
is_correct =
|
61 |
if len(DOB) == 3:
|
62 |
is_correct = (len(DOB[2]) == 4)
|
63 |
if len(DOB[0]) != 2 and len(DOB[1]) !=2 and not is_correct:
|
@@ -291,4 +291,4 @@ __HELP__ = """
|
|
291 |
|
292 |
DOB should be in format of dd/mm/yyyy
|
293 |
Year is optional it is not necessary to pass it
|
294 |
-
"""
|
|
|
57 |
if len(DOB) != 3 and len(DOB) != 2:
|
58 |
await m.reply_text("DOB should be in format of dd/mm/yyyy\nYear is optional it is not necessary to pass it")
|
59 |
return
|
60 |
+
is_correct = False
|
61 |
if len(DOB) == 3:
|
62 |
is_correct = (len(DOB[2]) == 4)
|
63 |
if len(DOB[0]) != 2 and len(DOB[1]) !=2 and not is_correct:
|
|
|
291 |
|
292 |
DOB should be in format of dd/mm/yyyy
|
293 |
Year is optional it is not necessary to pass it
|
294 |
+
"""
|