SC2 replay uploader for https://sc2replaystats.com.
Started this project to have some way to automatically upload my sc2 replays from Linux.
The current code would probably work for Windows as well, but not macOS until supported by fsnotify/fsnotify
project.
Copy repo and run:
go run cmd/main.go -dir "/absolute/path/to/replay/dir/" -token "mysc2replaytoken" -hash "sc2replayhash"
or use go get
.
- tests
- check that all files in the replay dir have been uploaded before on app start
- remember which files we have seen before between runs (basically store our list of things we've seen before and load it again)
- only remember the files that have been successfully uploaded. right now it does not care if the upload call failed.
- retry upload with backoff if it fails