From a028766cf8a439c668d4096c797097f1fba8c108 Mon Sep 17 00:00:00 2001 From: StarHeart <947371563@qq.com> Date: Thu, 21 Jan 2021 07:41:12 +0800 Subject: [PATCH] Update creating-a-matcher.md --- archive/2.0.0a8.post2/guide/creating-a-matcher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/2.0.0a8.post2/guide/creating-a-matcher.md b/archive/2.0.0a8.post2/guide/creating-a-matcher.md index 182885fe..ac74f6c1 100644 --- a/archive/2.0.0a8.post2/guide/creating-a-matcher.md +++ b/archive/2.0.0a8.post2/guide/creating-a-matcher.md @@ -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` 之间可以使用 `与 &` 互相组合: