When a user posts an ephemeral link (e.g. from 4chan) in a Discord channel, the bot:
- Detects the link automatically
- Downloads and reuploads the content as a Discord attachment
- Posts it as the original user via webhook — seamlessly, as if nothing happened
The content remains accessible even after the original source goes offline or expires.
You'll need to create a Discord application and bot to get your token:
- Go to the Discord Developer Portal
- Click New Application, give it a name, and save
- Navigate to the Bot tab and click Add Bot
- Under the bot's username, click Reset Token to reveal your
DISCORD_TOKEN - Invite the bot to your server using the OAuth2 > URL Generator tab (select the
botscope and any required permissions)
services:
ephemeral-links-reuploader:
image: dungfu/ephemeral-links-reuploader:latest
container_name: ephemeral-links-reuploader
restart: unless-stopped
volumes:
- /home/example/config:/config
- /home/example/temp:/temp
environment:
- DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN| Path | Purpose |
|---|---|
/config |
Bot configuration files |
/temp |
Temporary storage for downloads |
| Variable | Required | Description |
|---|---|---|
DISCORD_TOKEN |
Yes | Your Discord bot token |