mirror of https://github.com/Mai-with-u/MaiBot.git
fix:提取出错
parent
5d2f4aa9e8
commit
fb5dcbe860
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
from typing import Dict, Optional, Tuple, List
|
from typing import Dict, Optional, Tuple, List, Any
|
||||||
from rich.traceback import install
|
from rich.traceback import install
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from json_repair import repair_json
|
from json_repair import repair_json
|
||||||
|
|
@ -228,7 +228,7 @@ class ActionPlanner:
|
||||||
async def sub_plan(
|
async def sub_plan(
|
||||||
self,
|
self,
|
||||||
action_list: List[Tuple[str, ActionInfo]],
|
action_list: List[Tuple[str, ActionInfo]],
|
||||||
actions_before_now: List[ActionPlannerInfo],
|
actions_before_now: List[Dict[str, Any]],
|
||||||
chat_content_block: str,
|
chat_content_block: str,
|
||||||
message_id_list: List[Tuple[str, DatabaseMessages]],
|
message_id_list: List[Tuple[str, DatabaseMessages]],
|
||||||
is_group_chat: bool = False,
|
is_group_chat: bool = False,
|
||||||
|
|
@ -242,7 +242,7 @@ class ActionPlanner:
|
||||||
action_names_in_list = [name for name, _ in action_list]
|
action_names_in_list = [name for name, _ in action_list]
|
||||||
actions_before_now = [
|
actions_before_now = [
|
||||||
action for action in actions_before_now
|
action for action in actions_before_now
|
||||||
if action.action_type in action_names_in_list
|
if action["action_name"] in action_names_in_list
|
||||||
]
|
]
|
||||||
|
|
||||||
actions_before_now_block = build_readable_actions(
|
actions_before_now_block = build_readable_actions(
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[inner]
|
[inner]
|
||||||
version = "6.7.0"
|
version = "6.7.1"
|
||||||
|
|
||||||
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
||||||
#如果你想要修改配置文件,请递增version的值
|
#如果你想要修改配置文件,请递增version的值
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue