From c6f28bd75141da583bdd95e86d37ae5884276c55 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 7 Jul 2024 08:55:55 +0800 Subject: refactor!: change namespace --- examples/rules/COC7/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/rules/COC7/__init__.py') diff --git a/examples/rules/COC7/__init__.py b/examples/rules/COC7/__init__.py index 25acdaa..128c312 100644 --- a/examples/rules/COC7/__init__.py +++ b/examples/rules/COC7/__init__.py @@ -12,8 +12,10 @@ core = Core() class COC7(Rule): - attr: Attributes = Depends() # 必须实现一个继承自 Character.Attribute 的子类 - wiki: Wiki = Depends() # 可选实现一个 Wiki 类 + # 规则、指令、词条,必须至少实现任意一个 + attr: Attributes = Depends() # CharacterCard.Attribute + wiki: Wiki = Depends() # Wiki + cmd: Command = Depends() # Command @core.event_postprocessor_hook async def auto_card(self): -- cgit v1.2.3-70-g09d2