-
Notifications
You must be signed in to change notification settings - Fork 0
Home
YmL edited this page Oct 12, 2022
·
5 revisions
Discord tag finder is a tool made for finding someone's tag by username.
max time 13h = 9999 * 5
configuration
# - - - - - - - - - #
main_TOKEN = "" # <- Main acc Token
TOKENS = [""] # <- list slave Token
NAME = "" # <- Name of user you're trying to find
# - - - - - - - - - #
Get current API version
apiv = str(re.search(
re.compile("(?<=API_VERSION: ')([0-9]|[1-9][0-9])(?=')"),
requests.get("https://discord.com/").text
).group())
Send a friend request
def addF(name, tag, token):
headers = { "Accept": "*/*", "Content-Type": "application/json", "Authorization": token }
res = requests.post("https://discord.com/api/"+apiv+"/users/@me/relationships",
headers=headers,
json={"username": name, "discriminator": tag}
)
if(res.status_code == 429): #if program is sending too many requests sleep for 20s and call recursion
time.sleep(20)
addF(name, tag, token)
else:
return res
Send a friend request to NAME#x-z
def addFrom(x, z, name, token):
for i in range(x, z):
res = addF(name=name, tag=i, token=token)
if(res.status_code == 204):
print(NAME+"#"+str(i))
all_options.append(NAME+"#"+str(i))
time.sleep(5)
If config is valid
if(len(main_TOKEN) < 1 and len(NAME) < 1 and len("".join(TOKENS)) < 1):
print("Main Token or Tokens or Name missing!")
return None
Divide the tags into each token
perToken = trunc(10000/len(TOKENS))
left = 10000 - perToken
last=1
for token in TOKENS:
x=last
z=last+perToken
last=z
if(token==TOKENS[len(TOKENS)-1]):
z+=left
Start each token session as thread
x = threading.Thread(target = addFrom, args = (x, z, NAME, token, ))
threads.append(x)
for x in threads:
x.start()
Wait for token sessions to finish
for x in threads:
x.join()
Add saved friends to main acc
for user in all_options:
usrname, tag = user.split("#")
addF(usrname, tag, main_TOKEN)
time.sleep(4)
Made and maintained by yml