pyblock/pybitblock/pblogo.py
2021-12-03 23:55:49 -03:00

69 lines
2.1 KiB
Python

#Developer: Curly60e
#PyBLOCK its a clock of the Bitcoin blockchain.
import os
import pickle
from cfonts import render, say
def blogo():
if os.path.isfile('config/pyblocksettinconfig/gs.conf') or os.path.isfile('config/pyblocksettings.conf'): # Check if the file 'bclock.conf' is in the same folder
settingsv = pickle.load(open("config/pyblocksettings.conf", "rb")) # Load the file 'bclock.conf'
settings = settingsv # Copy the variable pathv to 'path'
else:
settings = {"gradient":"", "design":"block", "colorA":"green", "colorB":"yellow"}
pickle.dump(settings, open("config/pyblocksettings.conf", "wb"))
if settings["gradient"] == "grd":
output = render('PyBLOCK', gradient=[settings['colorA'], settings['colorB']], align='left', font=settings['design'])
else:
output = render('PyBLOCK', colors=[settings['colorA'], settings['colorB']], align='left', font=settings['design'])
print(output)
def tick():
print("""\033[1;32;40m
@
@
@
@@
@@
@@@
@@@ @@.
@@@@@@@
@@@@@@@@
@@@@
@@@@
@ @@@@
@@@@@@@@
@@@@@@@@
@@@
@@@
@@
@@
@
@
\033[0;37;40m""")
def canceled():
print("""
) ( (
( ( ( /( ( )\ ) )\ )
)\ )\ )\()) )\ ( (()/( ( (()/(
(((_)((((_)( ((_)\ (((_) )\ /(_)) )\ /(_))
)\___ )\ _ )\ _((_) )\___ ((_) (_)) ((_)(_))_
((/ __|(_)_\(_)| \| |((/ __|| __|| | | __|| \
| (__ / _ \ | .` | | (__ | _| | |__ | _| | |) |
\___|/_/ \_\ |_|\_| \___||___||____||___||___/
""")