File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
const (
21
21
bandur time.Duration = time .Minute * 2
22
22
add = "添加违禁词"
23
- delete = "删除违禁词"
23
+ del = "删除违禁词"
24
24
list = "查看违禁词"
25
25
)
26
26
@@ -62,7 +62,7 @@ func init() {
62
62
})
63
63
64
64
notAntiabuse := func (ctx * zero.Ctx ) bool {
65
- if zero .PrefixRule (add )(ctx ) || zero .PrefixRule (delete )(ctx ) || zero .PrefixRule (list )(ctx ) {
65
+ if zero .PrefixRule (add )(ctx ) || zero .PrefixRule (del )(ctx ) || zero .PrefixRule (list )(ctx ) {
66
66
return false
67
67
}
68
68
return true
@@ -112,7 +112,7 @@ func init() {
112
112
}
113
113
})
114
114
115
- engine .OnPrefix (delete , zero .OnlyGroup , zero .AdminPermission , onceRule ).SetBlock (true ).Handle (
115
+ engine .OnPrefix (del , zero .OnlyGroup , zero .AdminPermission , onceRule ).SetBlock (true ).Handle (
116
116
func (ctx * zero.Ctx ) {
117
117
args := strings .TrimSpace (ctx .State ["args" ].(string ))
118
118
if err := db .deleteWord (ctx .Event .GroupID , args ); err != nil {
You can’t perform that action at this time.
0 commit comments