Skip to content

Commit

Permalink
update list
Browse files Browse the repository at this point in the history
Signed-off-by: IThundxr <[email protected]>
  • Loading branch information
IThundxr committed Sep 18, 2023
1 parent 0e9788a commit a7cbecf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
56 changes: 32 additions & 24 deletions dev_capes.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,68 @@
{
"dev": [
{
"id": "9ac19a38-5013-44d3-9a05-118814639dcd",
"name": "Szedann"
"id": "e67eb09a-b5af-4822-b756-9065cdc49913",
"name": "IThundxr"
},
{
"id": "adf9cb5f-23dd-4d13-bcea-7d56c9f579a1",
"name": "cshcrafter"
"id": "8356846e-7582-4301-8111-aedd54cf95d6",
"name": "JosephFranci"
},
{
"id": "53b0c8cd-548e-43ac-9611-42fa7a24a383",
"name": "Madame_Bones"
"id": "fc6f678b-f31c-4a29-9b4f-bec29cfafd58",
"name": "Kayla_the_Bee"
},
{
"id": "e67eb09a-b5af-4822-b756-9065cdc49913",
"name": "IThundxr"
"id": "3f5150ea-fade-4233-ad40-719e207154e9",
"name": "LemmaEOF"
},
{
"id": "b317e1b6-7329-484c-a54b-fdb82228c07e",
"name": "mattentosh"
"id": "53b0c8cd-548e-43ac-9611-42fa7a24a383",
"name": "Madame_Bones"
},
{
"id": "fc6f678b-f31c-4a29-9b4f-bec29cfafd58",
"name": "Kayla_the_Bee"
"id": "b426dac5-8b87-4068-91c2-d7a97a2e50d1",
"name": "NeonCityDrifter"
},
{
"id": "8dd9ad20-80d5-45b3-a6e4-56af90d891c9",
"name": "To0pa"
"id": "dcbce3a2-6ee9-4a3b-94f1-dd5d674abe91",
"name": "RileyHighline"
},
{
"id": "3648354d-2a8d-45aa-87da-aa38293950e1",
"name": "Slimeist"
},
{
"id": "c5e9fe6f-93aa-4b64-83b7-5a617e359757",
"name": "SpottyTheTurtle"
},
{
"id": "ec83fe0b-c1c7-4b20-8644-5429b9b0222d",
"name": "StarFluxie"
},
{
"id": "c5e9fe6f-93aa-4b64-83b7-5a617e359757",
"name": "SpottyTheTurtle"
"id": "20dfe7f1-4c18-4545-849d-c4d764e118aa",
"name": "Stick_King1"
},
{
"id": "8356846e-7582-4301-8111-aedd54cf95d6",
"name": "JosephFranci"
"id": "9ac19a38-5013-44d3-9a05-118814639dcd",
"name": "Szedann"
},
{
"id": "dcbce3a2-6ee9-4a3b-94f1-dd5d674abe91",
"name": "RileyHighline"
"id": "8dd9ad20-80d5-45b3-a6e4-56af90d891c9",
"name": "To0pa"
},
{
"id": "3f5150ea-fade-4233-ad40-719e207154e9",
"name": "LemmaEOF"
"id": "adf9cb5f-23dd-4d13-bcea-7d56c9f579a1",
"name": "cshcrafter"
},
{
"id": "b426dac5-8b87-4068-91c2-d7a97a2e50d1",
"name": "NeonCityDrifter"
"id": "d926a62a-0ee9-4edb-a638-bbad14c3da49",
"name": "kurocat471"
},
{
"id": "b317e1b6-7329-484c-a54b-fdb82228c07e",
"name": "mattentosh"
}
]
}
2 changes: 2 additions & 0 deletions dev_capes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ Madame_Bones
NeonCityDrifter
mattentosh
LemmaEOF
kurocat471
Stick_King1
7 changes: 5 additions & 2 deletions gen_json.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
for line in f:
names.append(line.strip())

names = list(set(names))
names = sorted(list(set(names)))
names = [name for name in names if name != ""]

uuids = {}

for name in names:
print("Getting UUID for "+name)
with urllib.request.urlopen("https://api.ashcon.app/mojang/v2/user/"+name) as f:
dat = json.load(f)
uuids[name] = dat["uuid"]
Expand All @@ -27,5 +28,7 @@
} for k, v in uuids.items()
]
}

with open("dev_capes.json", "w") as f:
json.dump(full_data, f, indent=4)
json.dump(full_data, f, indent=4)
print("Wrote to dev_capes.json")

0 comments on commit a7cbecf

Please sign in to comment.