update readme

This commit is contained in:
bridge
2025-09-23 00:43:37 +08:00
parent a5e04aa80f
commit b97bce3292
8 changed files with 41 additions and 54 deletions

View File

@@ -181,8 +181,8 @@ class Avatar:
return False
action_name, _ = pair
action = self.create_action(action_name)
# 动作的 is_doable 定义为 @property
return bool(getattr(action, "is_doable", True))
doable = action.is_doable
return doable
async def act(self) -> List[Event]:
"""