Initial commit
This commit is contained in:
commit
cbbcd34776
|
@ -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))
|
Loading…
Reference in New Issue