feat: 更新表情包

This commit is contained in:
hp0912 2026-06-27 15:00:08 +08:00
parent 01f7917965
commit ac99f0a9ce
3 changed files with 25 additions and 13 deletions

View File

@ -14,17 +14,19 @@ argument-hint: "需要 name如 [开心]、[快乐];可重复传入发送多
## 可用表情 ## 可用表情
| 名称 | | 名称 |
| -------- | | ------------ |
| `[调皮]` | | `[调皮]` |
| `[无语]` | | `[无语]` |
| `[爱心]` | | `[爱心]` |
| `[安慰]` | | `[安慰]` |
| `[嘲笑]` | | `[嘲笑]` |
| `[傻瓜]` | | `[傻瓜]` |
| `[厉害]` | | `[厉害]` |
| `[生气]` | | `[生气]` |
| `[开心]` | | `[开心]` |
| `[打你]` |
| `[禁止色色]` |
> 表情映射表在脚本 `EMOJI_MAP` 中维护,新增表情直接在脚本中添加即可,无需修改 SKILL.md。 > 表情映射表在脚本 `EMOJI_MAP` 中维护,新增表情直接在脚本中添加即可,无需修改 SKILL.md。

View File

@ -51,6 +51,14 @@ EMOJI_MAP: dict[str, dict[str, object]] = {
"Md5": "4aae9dbe27651859ed526bcaad5f1f34", "Md5": "4aae9dbe27651859ed526bcaad5f1f34",
"TotalLen": 19788, "TotalLen": 19788,
}, },
"[禁止色色]": {
"Md5": "d4509efdb82cf39c9c5eabc67c7b03e1",
"TotalLen": 7739250,
},
"[打你]": {
"Md5": "b7f19049a1e3f5814c976fb43934fd04",
"TotalLen": 2093382,
},
} }

View File

@ -231,8 +231,10 @@ def call_jimeng_video(
timeout=300, timeout=300,
) )
data = resp.get("data") or []
urls: list[str] = [] urls: list[str] = []
for item in resp.get("data", []): for item in data:
if isinstance(item, dict): if isinstance(item, dict):
url = item.get("url") url = item.get("url")
if isinstance(url, str) and url.strip(): if isinstance(url, str) and url.strip():