-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (40 loc) · 1.5 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
48
49
50
51
from code_gen import code_gen
import jigger
import lando
def main():
correct_info = False
chosen_mode_str = input(
"Choose mode:\n1| Generate Coupon Codes\n2| Address Jigger\n3| Zalando Autocheckout\n"
)
chosen_mode = int(chosen_mode_str)
# Code Gen
if chosen_mode == 1:
while correct_info == False:
amount = input("\nHow many codes do you want? ")
delay = input("\nWhat delay would you like to use? ")
print(f"Amount of codes: {amount}\nDelay used: {delay}\n")
info_input = input("Is this the correct info? y/n: \n")
if info_input == "y":
if int(amount) >= 0 or int(delay) >= 0:
correct_info = True
if amount != "1":
print(f"\nGenerating {amount} codes with a delay of {delay}.\n")
else:
print(f"\nGenerating {amount} code with a delay of {delay}.\n")
for x in range(1, int(amount) + 1):
code_gen.gen(int(x), int(delay))
else:
correct_info = False
# Jigger
elif chosen_mode == 2:
print("\nJigger Chosen")
jigger.main("3", "Road", "Road Num", 25)
# Zalando ACO
elif chosen_mode == 3:
mode = input("\nChoose mode:\n1 Preload Drop\n2 ACO\n")
if mode == "1":
lando.main("1")
elif mode == "2":
lando.main("2")
if __name__ == "__main__":
main()