Display ascii art and username on startup

This commit is contained in:
Kevin Bataille
2025-10-06 15:53:57 +02:00
parent f5e0bba298
commit ea05c847ba
2 changed files with 19 additions and 2 deletions

9
ascii.md Normal file
View File

@@ -0,0 +1,9 @@
▄▄▄ ▄▄▄▄▄▄ ▀
▄▀ ▀ ▄ ▄▄ ▄▄▄ ▄▄▄ ▄▄▄ █ ▄▄▄ ▄ ▄
█ █▀ ▀ █▀ ▀█ █ ▀ █ ▀ █▄▄▄▄▄ █ █▄█
█ █ █ █ ▀▀▀▄ ▀▀▀▄ █ █ ▄█▄
▀▄▄▄▀ █ ▀█▄█▀ ▀▄▄▄▀ ▀▄▄▄▀ █ ▄▄█▄▄ ▄▀ ▀▄

12
main.py
View File

@@ -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