自定义的规则, 只有群组和私聊中能触发
(ctx *zero.Ctx)
| 181 | |
| 182 | // 自定义的规则, 只有群组和私聊中能触发 |
| 183 | func customrule(ctx *zero.Ctx) bool { |
| 184 | if zero.OnlyGroup(ctx) || zero.OnlyPrivate(ctx) { |
| 185 | return true |
| 186 | } |
| 187 | return false |
| 188 | } |
| 189 | |
| 190 | // 自定义的规则, 判断你处于什么权限 |
| 191 | func customrule2(ctx *zero.Ctx) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected