Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
This commit is contained in:
14
src/main.py
14
src/main.py
@@ -132,13 +132,13 @@ class MainSystem:
|
||||
|
||||
await asyncio.gather(*tasks)
|
||||
|
||||
async def forget_memory_task(self):
|
||||
"""记忆遗忘任务"""
|
||||
while True:
|
||||
await asyncio.sleep(global_config.memory.forget_memory_interval)
|
||||
logger.info("[记忆遗忘] 开始遗忘记忆...")
|
||||
await self.hippocampus_manager.forget_memory(percentage=global_config.memory.memory_forget_percentage) # type: ignore
|
||||
logger.info("[记忆遗忘] 记忆遗忘完成")
|
||||
# async def forget_memory_task(self):
|
||||
# """记忆遗忘任务"""
|
||||
# while True:
|
||||
# await asyncio.sleep(global_config.memory.forget_memory_interval)
|
||||
# logger.info("[记忆遗忘] 开始遗忘记忆...")
|
||||
# await self.hippocampus_manager.forget_memory(percentage=global_config.memory.memory_forget_percentage) # type: ignore
|
||||
# logger.info("[记忆遗忘] 记忆遗忘完成")
|
||||
|
||||
|
||||
async def main():
|
||||
|
||||
Reference in New Issue
Block a user