This repository has been archived by the owner on Oct 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
DiscordAccount.py
59 lines (44 loc) · 2.2 KB
/
DiscordAccount.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
from random_username.generate import generate_username
import random
import string
def generate_password(stringLength=8):
lettersAndDigits = string.ascii_letters + string.digits
return ''.join((random.choice(lettersAndDigits) for i in range(stringLength)))
def generate_email(mail=None, min=5, max=20):
extensions = ['com', 'net', 'org', 'gov']
domains = ['gmail', 'yahoo', 'comcast', 'verizon',
'charter', 'hotmail', 'outlook', 'frontier', 'web']
winext = extensions[random.randint(0, len(extensions)-1)]
windom = domains[random.randint(0, len(domains)-1)]
acclen = random.randint(min, max)
if mail == None:
winacc = ''.join(random.choice(string.ascii_lowercase + string.digits + string.ascii_uppercase)
for _ in range(acclen))
else:
winacc = mail
finale = winacc + "@" + windom + "." + winext
return finale
def generate_sentence():
nouns = ("puppy", "car", "rabbit", "girl", "monkey", "dog", "cat", "cow", "sheep", "rabbit",
"duck", "hen", "horse", "pig", "turkey", "chicken", "donkey", "goat", "guinea pig", "llama")
verbs = ("runs", "hits", "jumps", "drives", "barfs", "demands", "breeds", "hopes",
"tops", "sounds", "rests", "shoots", "costs", "writes", "tastes", "supplies")
adv = ("crazily.", "dutifully.", "foolishly.", "merrily.", "occasionally.",
"nervously.", "rigidly.", "instantly.", "innocently.", "warmly.", "beautifully.", "simply.", "reassuringly.")
adj = ("adorable", "clueless", "dirty", "odd", "stupid", "private", "fanatical",
"pleasant", "common", "dead", "rude", "political", "sable", "colossal", "therapeutic", "maniacal", "lonley", "nutty", "light", "snotty", "calm", "vivacious")
l = [nouns, verbs, adj, adv]
sentence = " ".join([random.choice(i) for i in l])
return sentence
class DiscordAccount():
token = None
email = None
username = None
password = None
def __init__(self):
pass
def generate_random_credentials(self):
self.username = generate_username(1)[0]
self.email = generate_email()
self.password = generate_password(10)
self.welcome_message = generate_sentence()