Go to file
2022-04-19 19:50:48 +02:00
2022-01-03 20:40:02 +01:00
2022-04-19 17:10:52 +02:00
2022-04-19 17:03:39 +02:00
2022-04-19 17:03:39 +02:00
2022-04-19 16:39:07 +02:00
2022-04-19 19:50:48 +02:00
2021-12-08 19:44:50 +01:00
2022-04-19 19:50:48 +02:00
2021-05-10 23:13:11 +02:00
2022-03-06 23:04:05 +00:00
2022-04-19 19:50:48 +02:00

discord-embed

Discord will only create embeds for videos and images if they are smaller than 8MB. We can "abuse" this by using the twitter:image HTML meta tag.

This is useful when you send a video and want it to be playable in Discord.

How it works

This program will create a .html that you will send instead of a .mp4 file. Discord will parse the HTML and create an embed for you. The embed will be the same as the one you would get if you send a .mp4 file.

Environment variables

Variable Description
DOMAIN Domain where we server files from, not where we upload files to.
UPLOAD_FOLDER Path to the directory where we store files.
WEBHOOK_URL Discord Webhook URL

Need help?

Description
Discord will only create embeds for videos and images if they are smaller than 10MiB. We can "abuse" this by using the twitter:image HTML meta tag.
Readme GPL-3.0 1.6 MiB
Languages
Python 93.6%
Dockerfile 6.4%