···9191- Authenticate using the AT Protocol.
9292- Update the Bluesky avatar accordingly.
93939494-Execution logs will be displayed directly in the console, and a log file will be created in the `~/logs/bluesky-avatar-updater` directory. The log file will rotate when it reaches 10 MB, keeping up to 5 backup log files, each named with a timestamp for each execution.
9494+Execution logs will be displayed directly in the console, and a log file will be created in the `./logs/` directory. The log file will rotate when it reaches 10 MB, keeping up to 5 backup log files, each named with a timestamp for each execution.
95959696## Automating with Cron (Linux)
9797
+1-1
src/main.py
···2626SCRIPT_PATH = os.path.abspath(__file__)
27272828# Define the log file directory and log file path
2929-log_dir = os.path.expanduser("~/logs/bluesky-avatar-updater")
2929+log_dir = os.path.join(BASE_DIR, "logs")
3030if not os.path.exists(log_dir):
3131 os.makedirs(log_dir)
3232