This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtokenInfo.py
62 lines (52 loc) · 2.18 KB
/
tokenInfo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import requests
import json
import discord
from app import auth
from app.helpers import Notify
from app.vars.client import client
@client.command(aliases=['infotoken', 'searchtoken', 'getuserinfobytoken'])
async def tokenInfo(ctx, token):
notify = Notify(ctx=ctx, title='Token Information')
notify.prepair()
if(auth.token(token)):
userInfo = auth.parse(auth.token(token))
if (userInfo):
if str(userInfo["phone"]) == "None":
userInfo["phone"] = "❌"
else:
userInfo["phone"] = {str(userInfo["phone"])}
if str(userInfo["verified"]) == "None":
userInfo["verified"] = "❌"
else:
userInfo["verified"] = "✔️"
if str(userInfo["mfa_enabled"]) == "False":
userInfo["mfa_enabled"] = "❌"
else:
userInfo["mfa_enabled"] = "✔️"
if str(userInfo["nsfw_allowed"]) == "False":
userInfo["nsfw_allowed"] = "❌"
else:
userInfo["nsfw_allowed"] = "✔️"
if "premium_type" in userInfo:
if str(userInfo["premium_type"]) == "0":
userInfo["premium_type"] = "❌"
if str(userInfo["premium_type"]) == "1":
userInfo["premium_type"] = "Nitro Classic"
if str(userInfo["premium_type"]) == "2":
userInfo["premium_type"] = "Nitro Gaming"
else:
userInfo["premium_type"] = "❌"
text = f"""
Username: ```{str(userInfo['username']) + '#' + str(userInfo['discriminator'])}```
ID: ```{str(userInfo['id'])}```
E-mail: ```{str(userInfo['email'])}```
Verified Mail: ```{str(userInfo['verified'])}```
premium_type: ```{str(userInfo['premium_type'])}```
Enabled NFSW: ```{str(userInfo['nsfw_allowed'])}```
2FA: ```{str(userInfo['mfa_enabled'])}```
Phone: ```{userInfo['phone']}```
Token: ```{token}```
"""
notify.success(content=text)
else:
notify.error(content='The token entered is invalid!')