Update README for the new version
This commit is contained in:
parent
851f073e99
commit
2b159e5532
48
README.md
48
README.md
@ -18,57 +18,35 @@ Point it at your Steam screenshot folder, or similar, and shortly after you hit
|
|||||||
|
|
||||||
Binaries are available for Mac, Linux and Windows [here](https://github.com/tardisx/discord-auto-upload/releases/latest).
|
Binaries are available for Mac, Linux and Windows [here](https://github.com/tardisx/discord-auto-upload/releases/latest).
|
||||||
|
|
||||||
Put them somewhere on your path and run from the command line.
|
|
||||||
|
|
||||||
The windows version comes with a .bat file to make this a little easier - edit the `dau.bat` file to include your webhook URL and
|
|
||||||
other parameters, then you can simply double click `dau.bat` to start `dau` running.
|
|
||||||
|
|
||||||
#### From source
|
#### From source
|
||||||
|
|
||||||
You'll need to [download Go](https://golang.org/dl/) check the code out somewhere, run 'go generate' and then 'go build'.
|
You'll need to [download Go](https://golang.org/dl/) check the code out somewhere, run 'go generate' and then 'go build'.
|
||||||
|
|
||||||
## Using it
|
## Using it
|
||||||
|
|
||||||
`dau` is a command line driven program. When executed, it will continually scan a directory for new images, and each time it finds one it will upload it to discord, via the discord web hook.
|
`dau` configuration is managed via its internal web interface. When the executable is run, you can visit
|
||||||
|
`http://localhost:9090` in your web browser to configure the it. Configuration persists across runs, it is
|
||||||
|
saved in a file called '.dau.json' in your home directory.
|
||||||
|
|
||||||
|
The first time you run it, you will need to configure at least the discord web hook and the watch path for
|
||||||
|
`dau` to be useful.
|
||||||
|
|
||||||
|
While running, `dau` will continually scan a directory for new images, and each time it finds one it will
|
||||||
|
upload it to discord, via the discord web hook.
|
||||||
|
|
||||||
`dau` will only upload "new" screenshots, where "new" means a file that appears in a directory that it is watching, if it appears *after* it has started executing.
|
`dau` will only upload "new" screenshots, where "new" means a file that appears in a directory that it is watching, if it appears *after* it has started executing.
|
||||||
|
|
||||||
Thus, you do not have to worry about pointing `dau` at a directory full of images, it will only upload new ones.
|
Thus, you do not have to worry about pointing `dau` at a directory full of images, it will only upload new ones.
|
||||||
|
|
||||||
If `dau` is on your path, you can run it from your screenshot folder and there is then no need to specify the path to your images.
|
|
||||||
|
|
||||||
The only two mandatory command line parameters are the discord webhook URL:
|
|
||||||
|
|
||||||
`--webhook URL` - the webhook URL (see [here](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks) for details).
|
|
||||||
|
|
||||||
and the directory to watch:
|
|
||||||
|
|
||||||
`--directory /some/path/here` - the directory that screenshots will appear in.
|
|
||||||
|
|
||||||
You will have to quote the path on windows, or anywhere where the directory path contains spaces. Note that
|
|
||||||
subdirectories will also be scanned.
|
|
||||||
|
|
||||||
Other parameters are:
|
|
||||||
|
|
||||||
`--exclude <string>` - exclude any files that contain this string (commonly used to avoid uploading thumbnails).
|
|
||||||
|
|
||||||
`--watch xx` - specify how many seconds to wait between scanning the directory. The default is 10 seconds.
|
|
||||||
|
|
||||||
`--username <username>` - an arbitrary string to show as the bot's username in the channel.
|
|
||||||
|
|
||||||
`--no-watermark` - don't watermark images with a reference to this tool.
|
|
||||||
|
|
||||||
`--help` - show command line help.
|
|
||||||
|
|
||||||
`--version` - show the version.
|
|
||||||
|
|
||||||
## Limitations/bugs
|
## Limitations/bugs
|
||||||
|
|
||||||
* Only files ending jpg, gif or png are uploaded.
|
* Only files ending jpg, gif or png are uploaded.
|
||||||
* If multiple screenshots occur quickly (<1 second apart) not all may be uploaded.
|
* If multiple screenshots occur quickly (<1 second apart) not all may be uploaded.
|
||||||
* Files to upload are determined by the file modification time. If you drag and drop existing files they will not be detected and uploaded. Only newly created files will be detected.
|
* Files to upload are determined by the file modification time. If you drag and drop existing files they will
|
||||||
|
not be detected and uploaded. Only newly created files will be detected.
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
This is just a quick hack. Open to suggestions on new features and improvements.
|
This is just a relatively quick hack. Open to suggestions on new features and improvements.
|
||||||
|
|
||||||
Open an [issue](https://github.com/tardisx/discord-auto-upload/issues/new) and let me know.
|
Open an [issue](https://github.com/tardisx/discord-auto-upload/issues/new) and let me know.
|
||||||
|
Please include any relevant logs from the console when reporting bugs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user