增加表情包种类尝试

dev-from070-to080
UnCLAS-Prommer 2025-06-30 11:34:04 +08:00
parent 7564361a63
commit 939f3b7d08
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "MaiBotNapcatAdapter" name = "MaiBotNapcatAdapter"
version = "0.4.0" version = "0.4.1"
description = "A MaiBot adapter for Napcat" description = "A MaiBot adapter for Napcat"
[tool.ruff] [tool.ruff]

View File

@ -370,7 +370,7 @@ class MessageHandler:
if image_sub_type == 0: if image_sub_type == 0:
"""这部分认为是图片""" """这部分认为是图片"""
return Seg(type="image", data=image_base64) return Seg(type="image", data=image_base64)
elif image_sub_type in [1, 2, 3, 7, None]: elif image_sub_type not in [4, 9]:
"""这部分认为是表情包""" """这部分认为是表情包"""
return Seg(type="emoji", data=image_base64) return Seg(type="emoji", data=image_base64)
else: else: