mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 彻底解决schedule
parent
91d8ca80cf
commit
8c45e7d2be
|
|
@ -104,7 +104,7 @@ class ScheduleGenerator:
|
||||||
min_diff = float('inf')
|
min_diff = float('inf')
|
||||||
|
|
||||||
# 检查今天的日程
|
# 检查今天的日程
|
||||||
if not self.today_schedule.keys():
|
if not self.today_schedule:
|
||||||
return "摸鱼"
|
return "摸鱼"
|
||||||
for time_str in self.today_schedule.keys():
|
for time_str in self.today_schedule.keys():
|
||||||
diff = abs(self._time_diff(current_time, time_str))
|
diff = abs(self._time_diff(current_time, time_str))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue