A Node.js tool that extracts media attachments from Discord data packages and uploads them to an Immich server with backdated timestamps.
- Clone the repository:
git clone https://github.com/uwx/dpimmich.git
cd dpimmich- Install dependencies:
pnpm install- Set up environment variables:
# Create a .env file in the project root
DISCORD_DATA_PACKAGE_DIR=/path/to/discord/data/package
# It must be extracted!- Login with the Immich CLI (
pnpm dlx @immich/cli login <url> <key>)
Run the tool to upload all Discord screenshots:
pnpm dlx tsx src/index.tsAGPL