1.3 KiB
1.3 KiB
discord-ai
A headless Docker stack that runs the full Discord desktop client (Electron) on a virtual X11 desktop and provides:
- A live VNC stream (
localhost:5901) - A Puppeteer bridge for visual inspection / screenshots
- A discord.js-selfbot back-end for structured access (tokens, DMs, member lists, etc.)
Quick-start
-
Clone
git clone https://github.com/<you>/discord-ai.git cd discord-ai -
Store your user token in a shell variable
export USER_TOKEN="your_discord_user_token" -
Build & run
docker compose up --build -
Connect
- VNC viewer →
localhost:5901(no password) - API / bot.js available inside the container on its usual port (default: 3000, mapped to host)
- VNC viewer →
Files
| Path | Purpose |
|---|---|
Dockerfile |
Base image with all runtime deps |
entry.sh |
Boots Xvfb, pulseaudio, openbox, Discord |
bot.js |
Puppeteer and discord.js-self glue |
package.json |
ES Module entry + minimal deps |
Clean-up
Stop and remove:
docker compose down
docker image rm discord-ai_discord-ai