From 23fc77e8e1e71f0a9a015bc00743e21173023c19 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 Apr 2022 13:25:27 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/word_count/word_count.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/plugin/word_count/word_count.go b/plugin/word_count/word_count.go index fa719355..f26cd885 100644 --- a/plugin/word_count/word_count.go +++ b/plugin/word_count/word_count.go @@ -3,6 +3,13 @@ package wordcount import ( "fmt" + "os" + "regexp" + "sort" + "strconv" + "strings" + "time" + "github.com/FloatTech/zbputils/binary" "github.com/FloatTech/zbputils/control" "github.com/FloatTech/zbputils/ctxext" @@ -13,12 +20,6 @@ import ( "github.com/wcharczuk/go-chart/v2" zero "github.com/wdvxdr1123/ZeroBot" "github.com/wdvxdr1123/ZeroBot/message" - "os" - "regexp" - "sort" - "strconv" - "strings" - "time" ) var ( @@ -94,7 +95,6 @@ func init() { if re.MatchString(tex) && (i >= len(stopwords) || stopwords[i] != tex) { messageMap[tex]++ } - } } messageSeq = h.Get("messages.0.message_seq").Int() @@ -155,7 +155,6 @@ func init() { return } ctx.SendChain(message.Image("file:///" + file.BOTPATH + "/" + drawedFile)) - }) }