fixbug: utilize the new message filtering feature

This commit is contained in:
莘权 马 2023-11-09 11:52:34 +08:00
parent ff11cf69af
commit 1be1bb56e3

View file

@ -239,8 +239,9 @@ class Engineer(Role):
if not message.cause_by == get_class_name(WriteTasks):
continue
self.todos = self.parse_tasks(message)
return 1
return ret
return 0
async def _think(self) -> None:
# In asynchronous scenarios, first check if the required messages are ready.