mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-29 13:51:26 +08:00
🎨 改进代码样式
This commit is contained in:
parent
51f3eda09a
commit
23fc77e8e1
@ -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))
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user