Have a directory called "update" where I can add the updated bot.jar file
When the bot is in 0 vcs, as well as there being "bot.jar" in "update", stop the thread.
Maybe add a 300 second countdown between a bot leaving a vc and it auto-updating to ensure no accidental bot DCs happen
Then start.sh / start.bat script moves file from update to ../ or the literal path to where it is meant to be, checks every second to see when the file was last modified to ensure file transfer is successful and starts the bot up again.
To simply put it:
Have a directory called "update" where I can add the updated bot.jar file
When the bot is in 0 vcs, as well as there being "bot.jar" in "update", stop the thread. Maybe add a 300 second countdown between a bot leaving a vc and it auto-updating to ensure no accidental bot DCs happen
Then start.sh / start.bat script moves file from update to ../ or the literal path to where it is meant to be, checks every second to see when the file was last modified to ensure file transfer is successful and starts the bot up again.