This commit is contained in:
UnCLAS-Prommer
2025-08-11 11:29:05 +08:00
parent 4b59eda5c0
commit 43190b12d2
2 changed files with 3 additions and 1 deletions

View File

@@ -101,6 +101,8 @@ class ImageManager:
image_bytes = base64.b64decode(image_base64)
image_hash = hashlib.md5(image_bytes).hexdigest()
emoji = await emoji_manager.get_emoji_from_manager(image_hash)
if not emoji:
return "[表情包:未知]"
emotion_list = emoji.emotion
tag_str = ",".join(emotion_list)
return f"[表情包:{tag_str}]"