A simple website that allows you to upload files to Discord's CDN without having to do it in their app.
- Golang (to build from stratch)
- Binary
- Discord Bot
- Git
git clone [email protected]:Schutz3/dccdn.git
or download the ZIP file and extract it
cd dccdn
- Rename example.config.yaml to
config.yaml - Go to https://discord.com/developers/applications and create bot
- Make sure this is enabled
- Invite the bot to your server using this link:
https://discord.com/api/oauth2/authorize?client_id=INSERT YOUR APPLICATION ID&permissions=8&scope=bot - Configure the
config.yamlfile
go get
go run main.go
The website will be up at http://localhost:8080 (unless you've changed the config)
Files uploaded on the site will be available in the channel that you set in config.yaml
DCCDN can also be used with ShareX! Follow these steps to get it working (don't want to follow steps? click here to download the backup (using my instance)):
- Copy the upload endpoint. If using localhost it will be
http://localhost:8080/api/sharex, or if you're using my instance it will behttps://cdn.scz.my.id/api/sharex - Open ShareX and go to
Destinations>Custom uploader settings> ClickNew - Name it whatever you want & paste the upload endpoint in
Request URL - Under
Destination type, selectImage uploader,Text uploader, andFile uploader - Body should be
Form data (multipart/form-data)andFile form nameshould just befile. - In the HEADERS section, set the name to
Upload-Sourceand the value toAPI - Select your new ShareX config in the dropdowns at the bottom left of your screen
- Have fun with your new DCCDN.