refractor: 几乎写完了,进入测试阶段

This commit is contained in:
tcmofashi
2025-03-09 22:12:10 +08:00
parent fe3684736a
commit 6e2ea8261b
10 changed files with 654 additions and 338 deletions

View File

@@ -176,7 +176,7 @@ class MessageSendCQ(MessageCQ):
elif seg.type == 'image':
# 如果是base64图片数据
if seg.data.startswith(('data:', 'base64:')):
return f"[CQ:image,file=base64://{seg.data}]"
return cq_code_tool.create_emoji_cq_base64(seg.data)
# 如果是表情包(本地文件)
return cq_code_tool.create_emoji_cq(seg.data)
elif seg.type == 'at':