Display ascii art and username on startup
This commit is contained in:
9
ascii.md
Normal file
9
ascii.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
▄▄▄ ▄▄▄▄▄▄ ▀
|
||||||
|
▄▀ ▀ ▄ ▄▄ ▄▄▄ ▄▄▄ ▄▄▄ █ ▄▄▄ ▄ ▄
|
||||||
|
█ █▀ ▀ █▀ ▀█ █ ▀ █ ▀ █▄▄▄▄▄ █ █▄█
|
||||||
|
█ █ █ █ ▀▀▀▄ ▀▀▀▄ █ █ ▄█▄
|
||||||
|
▀▄▄▄▀ █ ▀█▄█▀ ▀▄▄▄▀ ▀▄▄▄▀ █ ▄▄█▄▄ ▄▀ ▀▄
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
12
main.py
12
main.py
@@ -18,6 +18,14 @@ def main():
|
|||||||
"""
|
"""
|
||||||
Main function to initialize the Booker and start the booking process.
|
Main function to initialize the Booker and start the booking process.
|
||||||
"""
|
"""
|
||||||
|
# Display ASCII art and username
|
||||||
|
with open('ascii.md', 'r') as f:
|
||||||
|
ascii_art = f.read()
|
||||||
|
print(ascii_art)
|
||||||
|
username = os.environ.get("CROSSFIT_USERNAME")
|
||||||
|
print(f"Username: {username}")
|
||||||
|
print()
|
||||||
|
|
||||||
# Set up logging
|
# Set up logging
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
@@ -29,8 +37,8 @@ def main():
|
|||||||
|
|
||||||
# Initialize components
|
# Initialize components
|
||||||
auth_handler = AuthHandler(
|
auth_handler = AuthHandler(
|
||||||
os.environ.get("CROSSFIT_USERNAME"),
|
str(os.environ.get("CROSSFIT_USERNAME")),
|
||||||
os.environ.get("CROSSFIT_PASSWORD")
|
str(os.environ.get("CROSSFIT_PASSWORD"))
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize notification system
|
# Initialize notification system
|
||||||
|
|||||||
Reference in New Issue
Block a user