-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
47 lines (40 loc) · 1.25 KB
/
main.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
import string
import random
import os
import time as t
from termcolor import colored as cl
nitrotype = input(cl('boost or classic: ', 'white'))
if nitrotype == 'boost':
codecount = 24
elif nitrotype == 'classic':
codecount = 16
else:
print(cl(nitrotype + ' is an invalid choice.', 'red'))
t.sleep(2)
os.system('python3 main.py')
speed = input('slow or fast: ')
if speed == 'slow':
speed = 0.4
elif speed == 'fast':
speed = 0.1
else:
print(cl(speed + ' is an invalid choice.', 'red'))
t.sleep(2)
os.system('python3 main.py')
print(cl('generating ' + nitrotype + ' nitro codes...\n', 'green'))
f = open(nitrotype + 'Codes.txt', 'w+')
f.write('do not expect any of these to work, but there always is a chance.\n\n')
f.close()
while True:
def get_random_string(length):
random_list = []
for i in range(length):
random_list.append(random.choice(string.ascii_uppercase + string.digits))
return ''.join(random_list)
code = 'https://discord.gift/' + get_random_string(codecount).lower()
colors = ['cyan', 'green', 'magenta', 'yellow', 'blue', 'cyan', 'green', 'magenta', 'yellow', 'blue']
print(cl(code, random.choice(colors)))
f = open(nitrotype + 'Codes.txt', 'a+')
f.write(code + '\n')
f.close()
t.sleep(speed)