forked from 3kh0/echodown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnection.py
58 lines (46 loc) · 3 KB
/
connection.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
#
# ███████╗░█████╗░██╗░░██╗░█████╗░ ██████╗░░█████╗░░██╗░░░░░░░██╗███╗░░██╗
# ██╔════╝██╔══██╗██║░░██║██╔══██╗ ██╔══██╗██╔══██╗░██║░░██╗░░██║████╗░██║
# █████╗░░██║░░╚═╝███████║██║░░██║ ██║░░██║██║░░██║░╚██╗████╗██╔╝██╔██╗██║
# ██╔══╝░░██║░░██╗██╔══██║██║░░██║ ██║░░██║██║░░██║░░████╔═████║░██║╚████║
# ███████╗╚█████╔╝██║░░██║╚█████╔╝ ██████╔╝╚█████╔╝░░╚██╔╝░╚██╔╝░██║░╚███║
# ╚══════╝░╚════╝░╚═╝░░╚═╝░╚════╝░ ╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝░░╚═╝░░╚══╝
#
# https://github.com/3kh0/echodown
#
import time
import random
from termcolor import colored
from halo import Halo
waitTime = 0.5
def check_connection():
with Halo(text=colored("Checking Connection", "yellow"), spinner="dots") as h1:
time.sleep(waitTime)
h1.succeed(colored(" Check Connection", "green"))
with Halo(text=colored("Importing Packages", "yellow"), spinner="dots") as h2:
time.sleep(waitTime)
h2.succeed(colored(" Import Packages", "green"))
with Halo(text=colored("Downloading Scripts", "yellow"), spinner="dots") as h3:
time.sleep(waitTime)
h3.succeed(colored(" Download Scripts", "green"))
with Halo(text=colored("Fetching Files", "yellow"), spinner="dots") as h4:
time.sleep(waitTime)
h4.succeed(colored(" Fetch Files", "green"))
with Halo(text=colored("Compiling", "yellow"), spinner="dots") as h5:
time.sleep(waitTime)
h5.succeed(colored(" Compile", "green"))
with Halo(text=colored("Detecting Hardware", "yellow"), spinner="dots") as h6:
time.sleep(waitTime)
h6.succeed(colored(" Detect Hardware", "green"))
with Halo(text=colored("Starting Proxy", "yellow"), spinner="dots") as h7:
time.sleep(waitTime)
h7.succeed(colored(" Start Proxy", "green"))
with Halo(text=colored("Starting Hosted Threads", "yellow"), spinner="dots") as h8:
time.sleep(waitTime)
h8.succeed(colored(" Start Hosted Threads", "green"))
with Halo(text=colored("Requesting RAM from System", "yellow"), spinner="dots") as h9:
time.sleep(waitTime)
h9.succeed(colored(" Request RAM", "green"))
with Halo(text=colored("Booting", "yellow"), spinner="dots") as h10:
time.sleep(waitTime)
h10.succeed(colored(" Boot", "green"))