Skip to content

Commit

Permalink
not only group
Browse files Browse the repository at this point in the history
  • Loading branch information
shudorcl committed Dec 29, 2023
1 parent 8e42629 commit f6ee1a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/bilibili/bilibili_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func init() {
handleLive(ctx)
}
})
en.OnRegex(`^(.*)视频总结$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).
en.OnRegex(`^(.*)视频总结$`, zero.AdminPermission).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
gid := ctx.Event.GroupID
if gid <= 0 {
Expand Down
2 changes: 1 addition & 1 deletion plugin/saucenao/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func init() { // 插件主体
}
ctx.SendChain(message.Text("成功!"))
})
engine.OnRegex(`^(.*)搜图显示图片$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).
engine.OnRegex(`^(.*)搜图显示图片$`, zero.AdminPermission).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
gid := ctx.Event.GroupID
if gid <= 0 {
Expand Down

0 comments on commit f6ee1a4

Please sign in to comment.