Skip to content

Commit

Permalink
re activate when deleting key
Browse files Browse the repository at this point in the history
  • Loading branch information
Roblox-Thot committed Sep 22, 2024
1 parent 528878b commit 1523b0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DecalUploader/Uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ def delete_key(self) -> None:
"X-Csrf-Token": requests.post('https://auth.roblox.com/v1/login', cookies={'.ROBLOSECURITY': self.cookie}).headers['x-csrf-token']
}

requests.delete(f'https://apis.roblox.com/cloud-authentication/v1/apiKey/{self.keyId}', headers=headers, cookies={'.ROBLOSECURITY': self.cookie}).json()
response = requests.delete(f'https://apis.roblox.com/cloud-authentication/v1/apiKey/{self.keyId}', headers=headers, cookies={'.ROBLOSECURITY': self.cookie})

if 'Re-activate My Account' in response.text:
attempt = requests.post("https://usermoderation.roblox.com/v1/not-approved/reactivate", headers= headers)
if attempt.status_code != 200:
raise SystemExit("Banned/failed to reactivate")

self.delete_key()

def upload(self, file:bytes, title:str, description:str) -> Asset|None:
"""Attempts to upload decal
Expand Down

0 comments on commit 1523b0f

Please sign in to comment.