Merge branch 'master' of https://github.com/MaiBot-Plus/MaiMbot-Pro-Max
This commit is contained in:
@@ -411,7 +411,7 @@ async def custom_to_stream(
|
||||
async def adapter_command_to_stream(
|
||||
action: str,
|
||||
params: dict,
|
||||
platform: str,
|
||||
platform: Optional[str] = None,
|
||||
stream_id: Optional[str] = None,
|
||||
timeout: float = 30.0,
|
||||
storage_message: bool = False
|
||||
@@ -431,6 +431,9 @@ async def adapter_command_to_stream(
|
||||
dict: 适配器返回的响应,格式为 {"status": "ok/failed", "data": {...}, "message": "..."}
|
||||
如果发送失败则返回 {"status": "error", "message": "错误信息"}
|
||||
"""
|
||||
if not stream_id and not platform:
|
||||
raise ValueError("必须提供stream_id或platform参数")
|
||||
|
||||
try:
|
||||
|
||||
logger.debug(f"[SendAPI] 向适配器发送命令: {action}")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[inner]
|
||||
version = "6.2.6"
|
||||
version = "6.2.7"
|
||||
|
||||
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
||||
#如果你想要修改配置文件,请递增version的值
|
||||
|
||||
Reference in New Issue
Block a user