auto-schedule-pro-v2: temporary change responce to !пара (holidays exclusive)
This commit is contained in:
parent
e8a61a9e36
commit
535087fae1
|
@ -144,6 +144,7 @@ def process(message, path):
|
||||||
reference_time = int(current_time.strftime("%s")) - current_seconds
|
reference_time = int(current_time.strftime("%s")) - current_seconds
|
||||||
|
|
||||||
if base_command == "!пара":
|
if base_command == "!пара":
|
||||||
|
'''
|
||||||
upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds - 5400]
|
upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds - 5400]
|
||||||
|
|
||||||
if len(upcoming_lessons) > 0:
|
if len(upcoming_lessons) > 0:
|
||||||
|
@ -153,6 +154,9 @@ def process(message, path):
|
||||||
|
|
||||||
return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day,
|
return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day,
|
||||||
current_week)
|
current_week)
|
||||||
|
'''
|
||||||
|
|
||||||
|
return "Ви маєте законне право відпочити, пари почнуться не скоро"
|
||||||
|
|
||||||
elif base_command == "!пари":
|
elif base_command == "!пари":
|
||||||
base_day = current_week * 7 + current_day
|
base_day = current_week * 7 + current_day
|
||||||
|
|
Loading…
Reference in New Issue