修正pilk依赖提示文案

增加监听wechatpadpro消息平台的事件
This commit is contained in:
chenpeng
2025-07-02 17:30:37 +08:00
parent 30e8ea7fd8
commit ab677ea100
2 changed files with 4 additions and 2 deletions
@@ -13,7 +13,8 @@ class PlatformAdapterType(enum.Flag):
TELEGRAM = enum.auto()
WECOM = enum.auto()
LARK = enum.auto()
ALL = AIOCQHTTP | QQOFFICIAL | VCHAT | GEWECHAT | TELEGRAM | WECOM | LARK
WECHATPADPRO = enum.auto()
ALL = AIOCQHTTP | QQOFFICIAL | VCHAT | GEWECHAT | TELEGRAM | WECOM | LARK | WECHATPADPRO
ADAPTER_NAME_2_TYPE = {
@@ -24,6 +25,7 @@ ADAPTER_NAME_2_TYPE = {
"telegram": PlatformAdapterType.TELEGRAM,
"wecom": PlatformAdapterType.WECOM,
"lark": PlatformAdapterType.LARK,
"wechatpadpro": PlatformAdapterType.WECHATPADPRO,
}
+1 -1
View File
@@ -117,7 +117,7 @@ async def audio_to_tencent_silk_base64(audio_path: str) -> tuple[str, float]:
try:
import pilk
except ImportError as e:
raise Exception("未安装 pysilk,请执行: pip install pysilk") from e
raise Exception("未安装 pilk: pip install pilk") from e
temp_dir = os.path.join(get_astrbot_data_path(), "temp")
os.makedirs(temp_dir, exist_ok=True)