Tiktok Auto Embed Bot

Discord Bot that downloads and embeds tiktok links sent by users

The TikTok Auto Embed bot will automatically embed the tiktoks links you send. This is helpful because your friends can now watch the tiktoks you send without leaving the app. When you post a TikTok link, the TikTok Auto Embed bot will delete your original message and send a new message containing: the original link, the sender's discord tag, and an embedded copy of the video.

Link to install: https://tinyurl.com/TiktokAutoEmbed

The bot is completely async so it can handle many requests at once.

There are 3 parts to the video pipline: First pyppeteer goes to the tiktok link and finds the file link. It also saves the cookies. Next I send a aiohttp request with custom headers and cookies to download the video. Finaly if the tiktok is over 8 mb the code uses asyncio.create_subprocess_exec to run ffmpeg on the file and compress it.

ad on tiktok: https://www.tiktok.com/@theo.pnw/video/6964829873294560517?is_copy_url=1&is_from_webapp=v1

You are viewing a single comment. View All