auto-schedule-pro-v2, auto-schedule-pro: switch to calling new module by default

This commit is contained in:
2023-05-06 18:14:53 +03:00
parent 56e57c4d7f
commit edfcc6e1be
2 changed files with 6 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ def process(message, path):
# one printable symbol, so this is already protected
base_command = full_command[0].lower()
if base_command not in ["!пара-beta", "!пари-beta"]:
if base_command not in ["!пара", "!пари"]:
return ""
global module_path
@@ -146,7 +146,7 @@ def process(message, path):
reference_time = int(current_time.strftime("%s")) - current_seconds
if base_command == "!пара-beta":
if base_command == "!пара":
upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds-5400]
if len(upcoming_lessons) > 0:
@@ -158,7 +158,7 @@ def process(message, path):
closest_lesson_time, current_day,
current_week)
elif base_command == "!пари-beta":
elif base_command == "!пари":
base_day = current_week*7 + current_day
if len(full_command) >= 2: