feat: wonderful new
This commit is contained in:
10
src/main.py
10
src/main.py
@@ -17,6 +17,7 @@ from .common.logger import get_module_logger
|
||||
from .plugins.remote import heartbeat_thread # noqa: F401
|
||||
from .individuality.individuality import Individuality
|
||||
from .common.server import global_server
|
||||
from .plugins.chat_module.heartFC_chat.interest import InterestManager
|
||||
|
||||
logger = get_module_logger("main")
|
||||
|
||||
@@ -110,6 +111,15 @@ class MainSystem:
|
||||
asyncio.create_task(heartflow.heartflow_start_working())
|
||||
logger.success("心流系统启动成功")
|
||||
|
||||
# 启动 InterestManager 的后台任务
|
||||
interest_manager = InterestManager() # 获取单例
|
||||
await interest_manager.start_background_tasks()
|
||||
logger.success("InterestManager 后台任务启动成功")
|
||||
|
||||
# 启动 HeartFC_Chat 的后台任务(例如兴趣监控)
|
||||
await chat_bot.heartFC_chat.start()
|
||||
logger.success("HeartFC_Chat 模块启动成功")
|
||||
|
||||
init_time = int(1000 * (time.time() - init_start_time))
|
||||
logger.success(f"初始化完成,神经元放电{init_time}次")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user