Update creating-a-matcher.md

This commit is contained in:
StarHeart 2021-01-21 07:41:12 +08:00 committed by GitHub
parent 8973e66ec5
commit a028766cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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` 之间可以使用 `与 &` 互相组合: