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/

@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