🆕 新增群聊对话记录总结

This commit is contained in:
李寻欢
2024-04-12 11:37:21 +08:00
parent 3da8b327d0
commit b3ed0fcc6f
14 changed files with 211 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/go-co-op/gocron"
"go-wechat/config"
"go-wechat/tasks/friends"
"go-wechat/tasks/summary"
"go-wechat/tasks/watergroup"
"log"
"time"
@@ -37,6 +38,13 @@ func InitTasks() {
}
}
// 群聊总结
if config.Conf.Task.GroupSummary.Enable {
log.Printf("群聊总结任务已启用,执行表达式: %s", config.Conf.Task.GroupSummary.Cron)
_, _ = s.Cron(config.Conf.Task.GroupSummary.Cron).Do(summary.AiSummary)
}
// 更新好友列表
if config.Conf.Task.SyncFriends.Enable {
log.Printf("更新好友列表任务已启用,执行表达式: %s", config.Conf.Task.SyncFriends.Cron)