auto-schedule-pro-v2, auto-schedule-pro: switch to calling new module by default
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user