Explorar o código

Update dialogue_manager: change time context definition

StrayWarrior hai 5 días
pai
achega
40e6966df3
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      dialogue_manager.py

+ 3 - 3
dialogue_manager.py

@@ -130,11 +130,11 @@ class DialogueManager:
         """获取当前时间上下文"""
         if not current_hour:
             current_hour = datetime.now().hour
-        if 5 <= current_hour < 8:
+        if 5 <= current_hour < 7:
             return TimeContext.EARLY_MORNING
-        elif 8 <= current_hour < 12:
+        elif 7 <= current_hour < 11:
             return TimeContext.MORNING
-        elif 12 <= current_hour < 14:
+        elif 11 <= current_hour < 14:
             return TimeContext.NOON
         elif 14 <= current_hour < 18:
             return TimeContext.AFTERNOON