-
Notifications
You must be signed in to change notification settings - Fork 1
/
roblox_name_gen.py
73 lines (62 loc) · 2.56 KB
/
roblox_name_gen.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
63
64
65
66
67
68
69
70
71
72
73
import requests, random, json, string, os
from colorama import Fore, init
init()
os.system('cls')
os.system("title Gabin GitHub Generator")
def hiddenNameGen():
length = random.randint(4, 16)
letters = "Il"
return ''.join(random.choice(letters) for i in range(length))
def regularNameGen():
length = random.randint(4, 16)
letters = string.ascii_letters
return ''.join(random.choice(letters) for i in range(length))
def lengthNameGen(length):
letters = string.ascii_letters
return ''.join(random.choice(letters) for i in range(length))
choice = input('Choisissez votre option de générateur de noms !\n(1) Générateur de noms normaux\n(2) Générateur de noms cachés\n(3) Générer par longueur\nChoix : ')
how_many = int(input("Entrez le nombre de pseudo a générer: "))
tried = 0
used = 0
available = 0
if choice == '1':
while how_many != tried:
name = regularNameGen()
r = requests.get("https://api.roblox.com/users/get-by-username?username=" + name)
a = r.text
if a.find('Id') == -1:
tried = tried + 1
available = available + 1
print(Fore.GREEN + '[+]: ' + name + ' est disponible!')
else:
print(Fore.RED + "[-]:" + name + "n'est pas disponible!")
tried = tried + 1
used = used + 1
if choice == '2':
while how_many != tried:
name = hiddenNameGen()
r = requests.get("https://api.roblox.com/users/get-by-username?username=" + name)
a = r.text
if a.find('Id') == -1:
tried = tried + 1
available = available + 1
print(Fore.GREEN + '[+]: ' + name + ' est disponible!')
else:
print(Fore.RED + "[-]:" + name + "n'est pas disponible!")
tried = tried + 1
used = used + 1
if choice == '3':
length = int(input("Combien de longeur voulez-vous que le nom d'utilisateur ai? (4-16): "))
while how_many != tried:
name = lengthNameGen(length)
r = requests.get("https://api.roblox.com/users/get-by-username?username=" + name)
a = r.text
if a.find('Id') == -1:
tried = tried + 1
available = available + 1
print(Fore.GREEN + '[+]: ' + name + ' est disponible!')
else:
print(Fore.RED + "[-]: " + name + "n'est pas disponible!")
tried = tried + 1
used = used + 1
print(f"J'ai bien généré : {available} pseudos qui sont disponibles, et {used} qui ne le sont pas.")