From c70766a989698452e60e5e48fb2f802a2444330d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:02:26 +0900 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=20(#925)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- plugin/chatcount/chatcount.go | 1 - plugin/chatcount/model.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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,