2021-10-04 13:28:28 +10:30
2021-12-28 11:28:07 +10:30
2021-10-11 20:25:20 +10:30
2021-12-29 21:58:23 +10:30
2022-04-03 18:37:31 +09:30
2021-10-10 14:55:46 +10:30
2022-04-03 18:37:31 +09:30
2021-10-10 14:54:08 +10:30
2021-06-07 21:13:18 +09:30
2022-04-03 18:37:31 +09:30

Automatically upload screenshots into a discord channel

Go

This program automatically uploads new screenshots that appear in a folder on your computer to Discord and posts them in a channel:

Screenshot

Point it at your Steam screenshot folder, or similar, and shortly after you hit your screenshot hotkey the screenshot will appear in your discord chat.

Need help? Join our discord: https://discord.gg/eErG9sntbZ

What you'll need

Getting started

Binaries

Binaries are available for Mac, Linux and Windows here.

From source

You'll need to download Go, check the code out somewhere, run 'go generate' and then 'go build'.

Using it

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.

Thus, you do not have to worry about pointing dau at a directory full of images, it will only upload new ones.

Configuration options

See the web interface at http://localhost:9090 to configure dau.

'Discord WebHook URL'

The webhook URL from Discord. See https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks for more information on setting one up.

'Bot Username'

This is completely optional and can be any arbitrary string. It makes the upload appear to come from a different user (though this is visual only, and does not actually hide the bot identity in any way). You might like to set it to your own discord name.

'Directory to watch'

This is the path that dau will periodically inspect, looking for new images. Note that subdirectories are also scanned. You need to enter the full filesystem path here.

'Period between filesystem checks'

This is the number of seconds between which dau will look for new images.

'Do not watermark images'

This will disable the watermarking of images. I like it when you don't set this :-)

'Files to exclude'

This is a string to match against the filename to check for exclusions. The common use case is to use 'thumbnail' or similar if your image directory contains additional thumbnail files.

Limitations/bugs

  • Only files ending jpg, gif or png are 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.

Troubleshooting

Please check the "log" page on the web interface for information when things are not working as you expect.

TODO

Open an issue and let me know what you'd like to see.

Please include any relevant logs from the console when reporting bugs.

Description
Automatically upload screenshots from your computer into a discord channel
Readme MIT 366 KiB
v0.12.4 Latest
2022-09-15 22:14:59 +09:30
Languages
Go 69.9%
HTML 28.1%
CSS 2%