60 lines
1.3 KiB
Markdown
60 lines
1.3 KiB
Markdown
# 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
|
|
|
|
1. Clone
|
|
|
|
```bash
|
|
git clone https://github.com/<you>/discord-ai.git
|
|
cd discord-ai
|
|
```
|
|
|
|
2. Store your **user token** in a shell variable
|
|
|
|
```bash
|
|
export USER_TOKEN="your_discord_user_token"
|
|
```
|
|
|
|
3. Build & run
|
|
|
|
```bash
|
|
docker compose up --build
|
|
```
|
|
|
|
4. Connect
|
|
|
|
* **VNC viewer** → `localhost:5901` (no password)
|
|
* **API / bot.js** available inside the container on its usual port
|
|
(default: 3000, mapped to host)
|
|
|
|
---
|
|
|
|
## 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:
|
|
|
|
```bash
|
|
docker compose down
|
|
docker image rm discord-ai_discord-ai
|
|
```
|