-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (46 loc) · 1.33 KB
/
setup.py
File metadata and controls
55 lines (46 loc) · 1.33 KB
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
import json
import time
import os
import sys
addresses = {
"legacy_btc": "",
"segwit_btc": "",
"xmr": "",
"eth": "",
"lite": "",
"dash": "",
"ripple": "",
"doge": ""
}
print(r""" ___ _ __ _ _ _ __ | |_ ___ _ _ __ _ _ __ | | __
/ __| '__| | | | '_ \| __/ _ \ _____| | | |/ _` | '_ \| |/ /
| (__| | | |_| | |_) | || (_) |_____| |_| | (_| | | | | <
\___|_| \__, | .__/ \__\___/ \__, |\__,_|_| |_|_|\_\
|___/|_| |___/
""")
print("created by: github.com/jacques-andre")
print()
time.sleep(1)
if os.path.exists("addresses.json"):
print("You already have created addresses.json!!")
sys.exit()
print("Current Cryptos: ")
for k in addresses.keys():
print('* ' + k)
print()
for k in addresses.keys():
print(f"Please enter a address for: {k} (type 0 to not monitor)")
user_input = str(input(""))
if k == "legacy_btc" and user_input == "0":
print("Btc addresses must be monitored!")
sys.exit()
if k == "segwit_btc" and user_input == "0":
print("Btc addresses must be monitored!")
sys.exit()
if user_input == "0":
addresses[k] = 'NULL'
else:
addresses[k] = user_input
with open('addresses.json', 'w') as fp:
json.dump(addresses, fp, indent=4)
print(f"Done! generated addresses.json")