Upload files to "RecNet"

This commit is contained in:
2026-07-26 23:32:39 +00:00
parent 408381bb62
commit d99a815565
6 changed files with 460 additions and 0 deletions

42
RecNet/player_API.py Normal file
View File

@@ -0,0 +1,42 @@
import random
import ProgramUtils
import data
createdAt = ProgramUtils.getCurrentTime()
def getmyPlayer():
with open(f"{data.saveDataPath}Profile\\username.txt") as f:
username = f.read()
with open(f"{data.saveDataPath}Profile\\userid.txt") as f:
try:
userid = int(f.read())
except:
userid = random.randint(10000,9999999999)
return {
"accountId": userid,
"username": username,
"displayName": username,
"profileImage": "3vltmrmtk3vjyyqkqeln9hdnb.jpg",
"bannerImage": "3vltmrmtk3vjyyqkqeln9hdnb.jpg",
"isJunior": False,
"platforms": 1,
"personalPronouns": 0,
"identityFlags": 0,
"createdAt": createdAt,
"isMetaPlatformBlocked": False
}
def getcachedlogins(platform: int,PlatformId: str):
with open(f"{data.saveDataPath}Profile\\userid.txt") as f:
try:
userid = int(f.read())
except:
userid = random.randint(10000,9999999999)
return [{
"platform": platform,
"platformId": PlatformId,
"accountId": userid,
"lastLoginTime": createdAt,
"requirePassword": False,
}]