From 43b5984517d1db99b94e426656667ee7964c5cd4 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Sat, 25 Feb 2023 15:50:06 +0200 Subject: [PATCH] auto-schedule: revert time correction and change command to old --- modules/auto-schedule/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auto-schedule/index.py b/modules/auto-schedule/index.py index 7b1ba1d..ebb1e6c 100644 --- a/modules/auto-schedule/index.py +++ b/modules/auto-schedule/index.py @@ -1,4 +1,4 @@ -if self.MESSAGE["text"].lower() == "!пара": +if self.MESSAGE["text"].lower() == "!пара-old": try: schedule = json.loads( readfile(self.path + "schedule.json") ) @@ -6,7 +6,7 @@ if self.MESSAGE["text"].lower() == "!пара": current_week = current_time.isocalendar()[1] % 2 current_day = current_time.weekday() - current_seconds = (current_time.hour + 1) * 3600 + current_time.minute * 60 + current_time.second + current_seconds = current_time.hour * 3600 + current_time.minute * 60 + current_time.second print(f"[DEBUG] Current day is {type(current_day)}({current_day})") if current_day > 4 or current_day < 0: