better about screen

This commit is contained in:
Dexrn ZacAttack
2025-03-03 07:44:32 -08:00
parent 5333817130
commit cbba78d07d
12 changed files with 171 additions and 55 deletions

1
BuildScripts/build.bat Normal file
View File

@@ -0,0 +1 @@
py BuildScripts\contributors.py

View File

@@ -0,0 +1,32 @@
import json
import os
f = open('Assets/contributors.txt', 'w+')
try:
import requests
except ImportError:
# didn't even know you could do this
os.system("pip install requests")
import requests
except:
print("Requests is missing and the script couldn't install it...")
exit(0)
try:
contribs = requests.get("https://api.github.com/repos/WinDurango/WinDurango.UI/contributors?anon=1&per_page=50")
for contributor in contribs.json():
# why tf did they call it login
name = contributor.get("login", None)
pfp = contributor.get("avatar_url", None)
url = contributor.get("html_url", None)
contribution_count = str(contributor.get("contributions", None))
f.write(name.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + pfp.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + url.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + contribution_count + "\n")
except:
print("Couldn't fetch contributor information.")
exit(0)
f.close()