feat: mcp sleep
This commit is contained in:
@ -235,8 +235,14 @@ def process_emoji_collection(emoji_collection_dir, assets_dir):
|
||||
"buxue": ["thinking", "confused", "embarrassed"]
|
||||
}
|
||||
|
||||
# Copy each image from input directory to build/assets directory
|
||||
seen_emoji_names = set()
|
||||
|
||||
# Copy each image from input directory to build/assets directory. Prefer PNG
|
||||
# over GIF for duplicate emotion names so static defaults can coexist with
|
||||
# animated special actions in sibling directories.
|
||||
for root, dirs, files in os.walk(emoji_collection_dir):
|
||||
dirs.sort(key=lambda d: (0 if d == "png" else 1 if d == "gif" else 2, d))
|
||||
files.sort(key=lambda f: (0 if f.lower().endswith(".png") else 1, f))
|
||||
for file in files:
|
||||
if file.lower().endswith(('.png', '.gif')):
|
||||
# Copy file
|
||||
@ -245,6 +251,9 @@ def process_emoji_collection(emoji_collection_dir, assets_dir):
|
||||
if copy_file(src_file, dst_file):
|
||||
# Get filename without extension
|
||||
filename_without_ext = os.path.splitext(file)[0]
|
||||
if filename_without_ext in seen_emoji_names:
|
||||
continue
|
||||
seen_emoji_names.add(filename_without_ext)
|
||||
|
||||
# Add main emoji entry
|
||||
emoji_list.append({
|
||||
|
||||
Reference in New Issue
Block a user