One of by biggest pet peeves as a server owner is working with developers and getting version after version fired at me to upload to servers.
If you're untidy like myself you end up with PluginName (1).cs
and to be honest having to delete the original and rename the duplicate annoyed the everloving hell out of me.
We solved this in this script by monitoring the downloads folder for new files, upon seeing a new file of .json
or .cs
type we'll move the original version to a new folder created in Downloads.
Then it'll rename your latest copy to PluginName.cs
or PluginName.json
so you can upload it without any renaming shenanigans.
NOTE: This will only keep 2 versions - The Latest and the Previous.
- Full Backups of every version of your files organised into folders with dates/times.
- Ability to monitor for any filetypes specified in config
- Monitors set download folder for incoming files
- Moves, Renames, Deletes so you only have the latest version with the correct name
PluginName.cs
etc
Ensure Node.js is installed on the local machine
Install Packages using
npm i
Run the Bot using
node index.js
I wholeheartedly suggest you install this with NSSM so you don't need to run it when using it.