mirror of
https://github.com/WinDurango/WinDurango.UI.git
synced 2026-01-31 00:55:24 +01:00
better about screen
This commit is contained in:
1
BuildScripts/build.bat
Normal file
1
BuildScripts/build.bat
Normal file
@@ -0,0 +1 @@
|
||||
py BuildScripts\contributors.py
|
||||
32
BuildScripts/contributors.py
Normal file
32
BuildScripts/contributors.py
Normal 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user