-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
41 lines (35 loc) · 1.05 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
import asyncio
import sys
from questionary import Choice
import questionary
from modules.config import PRIVATE_KEYS, PROXIES
from modules.executor import Executor
def get_module(executor: Executor):
choices = [
Choice(f"{i}) {key}", value)
for i, (key, value) in enumerate(
{
"Generate wallets": executor.generate_wallets,
"Withdraw BNB from Binance": executor.withdraw_from_binance,
"StarryNift module": executor.run_starrynift,
"Get accounts stats": executor.get_accounts_stats,
"Exit": "exit",
}.items(),
start=1,
)
]
result = questionary.select(
"Select a method to get started",
choices=choices,
qmark="🛠 ",
pointer="✅ ",
).ask()
if result == "exit":
sys.exit()
return result
async def main(module):
await module()
if __name__ == "__main__":
executor = Executor(PRIVATE_KEYS, PROXIES)
module = get_module(executor)
asyncio.run(main(module))