Flag watcher ############ `-watcher` it reads the contents of a folder and moves them to another destination folder, then uploads everything to the tracker How to use watcher ============================== The flag does not accept parameters .. code-block:: python python start.py -watcher The default folders are: 'watcher_path' -> The location where you download your files 'watcher_destination_path' -> The location where Unit3Dup moves the files and uploads them How to configure the watcher ============================== Open the `Unit3D.json` file with a text editor and set the attribute: WATCHER_INTERVAL Every WATCHER_INTERVAL (seconds), it checks `watcher_path`, then moves everything to `watcher_destination_path`, and uploads it to the tracker How to create a service with the watcher ======================================== sudo nano /etc/systemd/system/Unit3Dup.service .. code-block:: ini [Unit] Description=Unit3D bot uploader After=network.target [Service] Type=simple WorkingDirectory=/home/parzival/Unit3Dup ExecStart=/usr/bin/python3 /home/parzival/Unit3Dup/start.py -watcher StandardOutput=file:/home/parzival/Unit3Dup.log StandardError=file:/home/parzival/Unit3Dup_error.log User=parzival [Install] WantedBy=multi-user.target .. code-block:: ini parzival@parivalsrv:~/Unit3Dup$ sudo systemctl daemon-reload parzival@parivalsrv:~/Unit3Dup$ sudo systemctl enable Unit3Dup.service parzival@parivalsrv:~/Unit3Dup$ sudo systemctl restart Unit3Dup.service parzival@parivalsrv:~/Unit3Dup$ sudo systemctl status Unit3Dup.service ● unit3dupbot.service - Unit3D bot uploader Loaded: loaded (/etc/systemd/system/Unit3Dup.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2025-04-28 15:34:29 UTC; 4s ago Main PID: 3093 (python3) Tasks: 1 (limit: 9350) Memory: 46.6M CPU: 420ms CGroup: /system.slice/Unit3Dup.service └─3093 /usr/bin/python3 /home/parzival/Unit3Dup/start.py -watcher