diff --git a/plugin/chatcount/chatcount.go b/plugin/chatcount/chatcount.go index eb5bf6d9..6055c14f 100644 --- a/plugin/chatcount/chatcount.go +++ b/plugin/chatcount/chatcount.go @@ -61,5 +61,4 @@ func init() { } ctx.SendChain(message.Text(text.String())) }) - } diff --git a/plugin/chatcount/model.go b/plugin/chatcount/model.go index 705eb02d..8fba57d1 100644 --- a/plugin/chatcount/model.go +++ b/plugin/chatcount/model.go @@ -98,7 +98,7 @@ func (ctdb *chattimedb) updateChatTime(gid, uid int64) (remindTime int64, remind lastTime := time.Unix(ts, 0) todayTime, _ := ctdb.userTodayTimeMap.Load(keyword) totayMessage, _ := ctdb.userTodayMessageMap.Load(keyword) - //这个消息数是必须统计的 + // 这个消息数是必须统计的 ctdb.userTodayMessageMap.Store(keyword, totayMessage+1) st := chatTime{ GroupID: gid,