mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-31 15:41:34 +08:00
✏️ fix typo
This commit is contained in:
parent
de0bca5c51
commit
fbf2eb638e
@ -128,7 +128,7 @@ def check(arg1, args2):
|
||||
async def _checker(bot: Bot, event: Event, state: T_State) -> bool:
|
||||
return bool(arg1 + arg2)
|
||||
|
||||
return Rule(_check)
|
||||
return Rule(_checker)
|
||||
```
|
||||
|
||||
`Rule` 和 `RuleChecker` 之间可以使用 `与 &` 互相组合:
|
||||
|
Loading…
x
Reference in New Issue
Block a user