Initial commit

This commit is contained in:
Natty 2024-10-02 12:37:48 +00:00
commit cbbcd34776
1 changed files with 28 additions and 0 deletions

28
mk.py Normal file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env python3
import json
import os
import datetime
emojis = []
for file in os.listdir("."):
print(f"File: {file}")
if os.path.isfile(file) and file.endswith("png"):
emojis.append({
"downloaded": True,
"fileName": file,
"emoji": {
"name": file.replace(".png", ""),
"category": "neocat",
"aliases": []
}
})
with open("meta.json", "w") as json_file:
json_file.write(json.dumps({
"metaVersion": 2,
"host": "astolfo.social",
"exportedAt": str(datetime.datetime.now().isoformat()),
"emojis": emojis
}, indent=4))