Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl authored Feb 14, 2023
1 parent d9502df commit 229ead1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,20 @@ async def _(matcher: Matcher):
执行下面的指令后,所有用户将无法调用指令`/a``/b`

```
/ac subject all deny service nonebot_plugin_ac_demo.group1
/ac permission deny --sbj all --srv nonebot_plugin_ac_demo.group1
```

执行下面的指令后,用户12345678将无法调用指令`/a`

```
/ac subject onebot:12345678 deny service nonebot_plugin_ac_demo.group1.a
/ac permission deny --sbj onebot:12345678 --srv nonebot_plugin_ac_demo.group1.a
```

执行下面的指令后,群组87654321的所有用户将无法调用除`/c`以外的任何指令

```
/ac subject onebot:g87654321 deny service nonebot_plugin_ac_demo
/ac subject onebot:g87654321 allow service nonebot_plugin_ac_demo.c
/ac permission deny --sbj onebot:g87654321 --srv nonebot_plugin_ac_demo
/ac permission allow --sbj onebot:g87654321 --srv nonebot_plugin_ac_demo.c
```

5. 手动鉴权
Expand Down

0 comments on commit 229ead1

Please sign in to comment.