Skip to content

Commit b9ddcfc

Browse files
committed
✏️ 小修正
1 parent b20cb1c commit b9ddcfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin_nativewife/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func init() {
3333
DisableOnDefault: false,
3434
Help: "nativewife\n- 抽wife[@xxx]\n- 添加wife[名字][图片]\n- 删除wife[名字]\n- [让|不让]所有人均可添加wife",
3535
})
36-
engine.OnFullMatch("抽wife", zero.OnlyGroup).SetBlock(true).SetPriority(20).
36+
engine.OnPrefix("抽wife", zero.OnlyGroup).SetBlock(true).SetPriority(20).
3737
Handle(func(ctx *zero.Ctx) {
3838
grpf := strconv.FormatInt(ctx.Event.GroupID, 36)
3939
wifes, err := os.ReadDir(base + "/" + grpf)
@@ -65,7 +65,7 @@ func init() {
6565
}
6666
})
6767
// 上传一张图
68-
engine.OnKeyword("添加wife", zero.OnlyGroup, chkAddWifePermission, picture.MustGiven).SetBlock(true).SetPriority(20).
68+
engine.OnPrefix("添加wife", zero.OnlyGroup, chkAddWifePermission, picture.MustGiven).SetBlock(true).SetPriority(20).
6969
Handle(func(ctx *zero.Ctx) {
7070
name := ""
7171
for _, elem := range ctx.Event.Message {

0 commit comments

Comments
 (0)