Python code for managing repositories in remote computers. add this to systemd service to make restart-safe code executive.
to do update and stop repositories command by discord bot, make discord bot account and add token.txt manually to remotely control your scripts.
make Repositories folder and put your repository in there. this code will automatically find main.py script and execute it.