🎨 改进代码样式

This commit is contained in:
github-actions[bot] 2022-04-17 13:25:27 +00:00
parent 51f3eda09a
commit 23fc77e8e1

View File

@ -3,6 +3,13 @@ package wordcount
import ( import (
"fmt" "fmt"
"os"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/FloatTech/zbputils/binary" "github.com/FloatTech/zbputils/binary"
"github.com/FloatTech/zbputils/control" "github.com/FloatTech/zbputils/control"
"github.com/FloatTech/zbputils/ctxext" "github.com/FloatTech/zbputils/ctxext"
@ -13,12 +20,6 @@ import (
"github.com/wcharczuk/go-chart/v2" "github.com/wcharczuk/go-chart/v2"
zero "github.com/wdvxdr1123/ZeroBot" zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message" "github.com/wdvxdr1123/ZeroBot/message"
"os"
"regexp"
"sort"
"strconv"
"strings"
"time"
) )
var ( var (
@ -94,7 +95,6 @@ func init() {
if re.MatchString(tex) && (i >= len(stopwords) || stopwords[i] != tex) { if re.MatchString(tex) && (i >= len(stopwords) || stopwords[i] != tex) {
messageMap[tex]++ messageMap[tex]++
} }
} }
} }
messageSeq = h.Get("messages.0.message_seq").Int() messageSeq = h.Get("messages.0.message_seq").Int()
@ -155,7 +155,6 @@ func init() {
return return
} }
ctx.SendChain(message.Image("file:///" + file.BOTPATH + "/" + drawedFile)) ctx.SendChain(message.Image("file:///" + file.BOTPATH + "/" + drawedFile))
}) })
} }