feat(PFC): 修改了默认参数(测试)

pull/937/head
lokong 2025-05-06 11:56:34 +08:00
parent b6318d4e36
commit ea71da27ee
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ class IdleConversationStarter:
# 从配置文件读取配置参数,或使用默认值
self.enabled: bool = getattr(global_config, 'idle_conversation', {}).get('enable_idle_conversation', True)
self.idle_check_interval: int = getattr(global_config, 'idle_conversation', {}).get('idle_check_interval', 10)
self.min_idle_time: int = getattr(global_config, 'idle_conversation', {}).get('min_idle_time', 60)
self.max_idle_time: int = getattr(global_config, 'idle_conversation', {}).get('max_idle_time', 120)
self.min_idle_time: int = getattr(global_config, 'idle_conversation', {}).get('min_idle_time', 7200)
self.max_idle_time: int = getattr(global_config, 'idle_conversation', {}).get('max_idle_time', 18000)
# 计算实际触发阈值在min和max之间随机
self.actual_idle_threshold: int = random.randint(self.min_idle_time, self.max_idle_time)