A Discord bot that watches every message, rewrites links from social media sites to cleaner mirror URLs that actually embed in Discord, reposts with attribution, and deletes the original. Attachments are preserved throughout.
⚠️ This is a personal project built for a private server. It's not a hosted service - you'll need to run your own bot instance.
InstaPost.mp4
InstaVideo.mp4
RedditPost.mp4
- Bot detects a URL in any message
- Rewrites the host to a known embed-friendly mirror
- Reposts the message with Original and Embed labels
- Deletes the original message
- Attachments from the original are carried over
Instagram /share/* links are resolved to canonical /p/, /reel/, or /tv/ paths before mirroring. Instagram Stories are skipped.
| Platform | Mirror |
|---|---|
| Twitter / X | fixupx.com |
kkinstagram.com |
|
rxddit.com |
|
| TikTok | vxtiktok.com |
| Bluesky | bskx.app |
To add or change mirrors, edit the DEFAULT_MIRRORS map in bot.py.
- Python 3.10+
- A Discord bot token with Message Content privileged intent enabled
- Create a Discord application and bot at the Developer Portal
- Enable the Message Content privileged intent
- Clone the repo and install dependencies:
git clone https://github.com/Raffiesaurus/discord-embedder.git cd discord-embedder pip install -r requirements.txt - Create a
.envfile:
DISCORD_TOKEN=your_bot_token_here
- Run the bot:
python bot.py- Only publicly embeddable content will render as a preview
- The bot does not store any message content - it reads, rewrites, and reposts only
- If a mirror site changes its behaviour, the bot will still post the rewritten link - it just may not embed
Personal project - no public support. Fork freely and add your own license.