Compare commits
2 Commits
ed7165632a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc5796d989 | ||
|
|
c073006592 |
@@ -18,5 +18,5 @@ services:
|
|||||||
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
|
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
|
||||||
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
|
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
|
||||||
volumes:
|
volumes:
|
||||||
- ./log:/app/log
|
- ./:/app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
19
main.py
19
main.py
@@ -18,14 +18,6 @@ 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,
|
||||||
@@ -35,6 +27,17 @@ def main():
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Display ASCII art and username
|
||||||
|
try:
|
||||||
|
with open('ascii.md', 'r') as f:
|
||||||
|
ascii_art = f.read()
|
||||||
|
print(ascii_art, flush=True)
|
||||||
|
username = os.environ.get("CROSSFIT_USERNAME")
|
||||||
|
print(f"Username: {username}", flush=True)
|
||||||
|
print(flush=True)
|
||||||
|
except Exception as e:
|
||||||
|
logging.error(f"Error displaying ASCII: {e}")
|
||||||
|
|
||||||
# Initialize components
|
# Initialize components
|
||||||
auth_handler = AuthHandler(
|
auth_handler = AuthHandler(
|
||||||
str(os.environ.get("CROSSFIT_USERNAME")),
|
str(os.environ.get("CROSSFIT_USERNAME")),
|
||||||
|
|||||||
Reference in New Issue
Block a user