Skip to content

Instantly share code, notes, and snippets.

@adryd325
Last active March 28, 2022 07:17
Show Gist options
  • Save adryd325/2d5d37ba2863cd6636e4a3f26a14b0d1 to your computer and use it in GitHub Desktop.
Save adryd325/2d5d37ba2863cd6636e4a3f26a14b0d1 to your computer and use it in GitHub Desktop.
Sunsetting Twitter Video Embeds

Beginning May 1st, 2022 Discord will be requiring bots in over 100 servers to be approved to read message contents. This is a separate application process to bot verification. The Video Embeds bot works by scanning messages for URLs that match Twitter, Reddit or TikTok and if they have an attached video, will attempt to create an embed for it. This means reading message contents critical for the bot to function. Discord has declined my application requesting access to read message content. This means after April 30th, 2022 the bot will stop functioning and will be taken offline.

For those looking for alternatives are free to self-host their own instance of the bot or may use TwitFix (fxtwitter). In the meantime, Twitter Video Embeds will remain online but unmaintained, and you’re still free to add the bot to your server until then.

Thank you for using this bot, it really helped boost my self-image and helped me feel useful in one of the most difficult times of my life. I'd like to give a huge thanks to those who helped make the bot and those who gave me reason to make it better. A list of people and their contributions is found below

  • Brecert: Creating the Twitter client implementation, allowing us to stop depending on youtube-dl
  • The youtube-dl project: Providing reference implementations for Twitter, Reddit and TikTok video downloaders
  • general-programming: Allowing me to use proxy.knotty.dev as a fallback for when Reddit videos are over 8 MB
  • Cynosphere: Compatibility with HiddenPhox
  • Robin Universe / TwitFix: Giving me reason to continue improving the bot to compete with TwitFix

If you enjoy my work and want to see more in the future, I have a ko-fi https://ko-fi.com/adryd/

@sladewatkins
Copy link

This sucks! We use this in my server to fix the embeds so they don't suck (since some of my friends don't have Twitter/TikTok/stuff.)

I may be able to use my contacts to see if I can reverse the decision on the application (seems odd they'd deny that considering it's a popular bot in over 100 servers and has a legit purpose) but can't make promises. If you wanna shoot me an email, (since I have my notifications off on GitHub), I could explore that for you... again, can't make any promises but it might be worth a shot if you wanna keep it around.

No matter what — I'd like to thank you, deeply, for maintaining this bot. It's been wonderful. <3

Best,
Slade

@Taureon
Copy link

Taureon commented Mar 1, 2022

this is a depressing read

@Orangestar12
Copy link

So even if your bot needs message content to function or the whole thing gets scuppered, Discord still might reject you? Did they give a reason or just say "Unfortunately our magic elves rejected you. >:(" because if they didn't say why they rejected you that makes larger bot development for things like this completely untenable.

@adryd325
Copy link
Author

So even if your bot needs message content to function or the whole thing gets scuppered, Discord still might reject you? Did they give a reason or just say "Unfortunately our magic elves rejected you. >:(" because if they didn't say why they rejected you that makes larger bot development for things like this completely untenable.

They said that they want to promote unique ideas, but they're "not ready to provide access to that data for your requested functionality"
https://cdn.discordapp.com/attachments/941476012674400307/953265773697200128/unknown.png

@Orangestar12
Copy link

As we don't view the changes that occur when message intents are disabled to be intrusive or compelling enough to grant messaging intents by themselves.

What on Earth does this mean? It's not even an independent clause.

It still boggles the mind that they would verify your bot knowing it requires message intent functionality to function, and then reject your bid for message intents.

@Wolfkid200444
Copy link

Honestly is a shame that this had to happen, i heavily use this bot for the embeds and etc and can't really think of any other bot that provides this same type of quality by any chance this bot has a public source code to self host?

@adryd325
Copy link
Author

Honestly is a shame that this had to happen, i heavily use this bot for the embeds and etc and can't really think of any other bot that provides this same type of quality by any chance this bot has a public source code to self host?

It's been open source since the beginning https://github.com/adryd325/discord-twitter-video-embeds. It even has a quick deploy script for debian servers (WHICH I NEED TO UPDATE WHOOPS)

@Wolfkid200444
Copy link

Thank u so much

@bagusnl
Copy link

bagusnl commented Mar 28, 2022

Any plan for windows deployment script with chocolatey for the package manager and task scheduler for the service management?
I currently only have a cheap windows server that doesn't support Docker so that's what I'm currently working with

@adryd325
Copy link
Author

Any plan for windows deployment script with chocolatey for the package manager and task scheduler for the service management? I currently only have a cheap windows server that doesn't support Docker so that's what I'm currently working with

I don't use Windows. if you'd like to write a script and open a PR I'll gladly accept it
It's not too hard to setup manually, just install dependencies (node, ffmpeg and yt-dlp), run npm i or pnpm i, and add it to something to have it automatically start at boot and restart if it crashes

@bagusnl
Copy link

bagusnl commented Mar 28, 2022

just install dependencies (node, ffmpeg and yt-dlp)
from what I've seen on the script. The bot also have gcc, g++, and make in the dependencies. Is it just linux exclusive?

@adryd325
Copy link
Author

just install dependencies (node, ffmpeg and yt-dlp)
from what I've seen on the script. The bot also have gcc, g++, and make in the dependencies. Is it just linux exclusive?

that's for node-gyp, I think windows will figure that out for you

@bagusnl
Copy link

bagusnl commented Mar 28, 2022

I have made the script for it
its currently imperfect and need some more testing
https://github.com/bagusnl/discord-twitter-video-embeds/blob/main/windows-installer.bat

Currently fighting with weird npm and pnpm behavior, but other than that the script seems to work just fine

EDIT:
Tested my self hosted bot and it works just fine. Just for tiktok they now use self-shorted links with quite a lot of subdomains here:
WhatsApp Image 2022-03-25 at 19 13 51 (1)
For regular links it works just fine but it wont process the shorten one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment