feat(plugin): support auto bot injection and file-based hot reload

This commit is contained in:
liuwei
2026-04-16 13:54:56 +08:00
parent 041a3f30d8
commit f0414e0dff
4 changed files with 330 additions and 18 deletions

View File

@@ -548,6 +548,9 @@ class MessageSummaryPlugin(MessagePluginInterface):
async def daily_summary_job(self):
"""定时任务每天早上9点总结昨天的聊天信息"""
try:
if not self.bot:
self.LOG.warning("每日聊天总结任务跳过bot 尚未注入")
return
self.LOG.info("开始执行每日聊天总结任务")
# 计算昨天的时间范围