From a549df4e10807d375824f0eb7084262d64b93adc Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Jul 2026 15:17:40 +0000 Subject: [PATCH] Update RecNet/player_API.py --- RecNet/player_API.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/RecNet/player_API.py b/RecNet/player_API.py index e69de29..6908675 100644 --- a/RecNet/player_API.py +++ b/RecNet/player_API.py @@ -0,0 +1,39 @@ +import random +import ProgramUtils + + +def getmyPlayer(): + with open("SaveData\\Profile\\username.txt") as f: + username = f.read() + with open("SaveData\\Profile\\userid.txt") as f: + try: + userid = int(f.read()) + except: + userid = random.randint(10000,9999999999) + return { + "accountId": userid, + "username": username, + "displayName": username, + "profileImage": "profileimage.png", + "bannerImage": "profileimage.png", + "isJunior": False, + "platforms": 1, + "personalPronouns": 0, + "identityFlags": 0, + "createdAt": ProgramUtils.getCurrentTime(), + "isMetaPlatformBlocked": False + } + +def getcachedlogins(PlatformId: str): + with open("SaveData\\Profile\\userid.txt") as f: + try: + userid = int(f.read()) + except: + userid = random.randint(10000,9999999999) + return [{ + "platform": 0, + "platformId": PlatformId, + "accountId": userid, + "lastLoginTime": ProgramUtils.getCurrentTime(), + "requirePassword": False, + }] \ No newline at end of file