Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 111f048

Browse files
committed
added a code genorator for the verifi code loading bar.
1 parent 5de7b3c commit 111f048

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

VAIIYA terminal.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import bcrypt
1212
from datetime import datetime
1313
from prompt_toolkit import print_formatted_text, HTML
14-
14+
import random
1515
#changes the size of the Command promp so it is easyer to read (and that the ASCII doesnt soft wrap)
1616

1717
def window_resize_startup():
@@ -82,9 +82,24 @@ def loading_bars_intro_2():
8282
for i in pb(range(215), label=label):
8383
time.sleep(.01)
8484
time.sleep(1)
85+
#generates a 5 digit number from 0-9
86+
securecodestartup1 = random.randint(0,9)
87+
securecodestartup2 = random.randint(0,9)
88+
securecodestartup3 = random.randint(0,9)
89+
securecodestartup4 = random.randint(0,9)
90+
securecodestartup5 = random.randint(0,9)
91+
92+
print('Codes found! code is:')
93+
time.sleep(1.5)
94+
#prints that generated number
95+
print(securecodestartup1,securecodestartup2,securecodestartup3,securecodestartup4,securecodestartup5)
96+
print("checking.... system expected code is:")
97+
time.sleep(1.5)
98+
print(securecodestartup1,securecodestartup2,securecodestartup3,securecodestartup4,securecodestartup5)
99+
time.sleep(2)
100+
print("code approved! moving on...")
101+
#a cool lil thing for a secure startup!
85102

86-
print("codes found! checking with system.... approved!")
87-
time.sleep(0.2)
88103

89104
def loading_bars_intro_3():
90105

0 commit comments

Comments
 (0)