We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2c81a commit 7616d57Copy full SHA for 7616d57
plugin/nativesetu/main.go
@@ -95,7 +95,8 @@ func init() {
95
})
96
engine.OnFullMatch("所有本地setu分类").SetBlock(true).
97
Handle(func(ctx *zero.Ctx) {
98
- msg := "所有本地setu分类"
+ msg := "本地setu分类一览"
99
+ hasnotchange := true
100
ns.mu.RLock()
101
for i, c := range ns.List() {
102
n, err := ns.db.Count(c)
@@ -105,8 +106,12 @@ func init() {
105
106
msg += fmt.Sprintf("\n%02d. %s(error)", i, c)
107
logrus.Errorln("[nsetu]", err)
108
}
109
+ hasnotchange = false
110
111
ns.mu.RUnlock()
112
+ if hasnotchange {
113
+ msg += "\n空"
114
+ }
115
ctx.SendChain(message.Text(msg))
116
117
0 commit comments