From cbbcd3477692a156b2bf0e5f9aedd630d75b8d11 Mon Sep 17 00:00:00 2001 From: Natty Date: Wed, 2 Oct 2024 12:37:48 +0000 Subject: [PATCH] Initial commit --- mk.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mk.py diff --git a/mk.py b/mk.py new file mode 100644 index 0000000..c194189 --- /dev/null +++ b/mk.py @@ -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)) \ No newline at end of file