teto_ai/README.md

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

  1. Clone

    git clone https://github.com/<you>/discord-ai.git
    cd discord-ai
    
  2. Store your user token in a shell variable

    export USER_TOKEN="your_discord_user_token"
    
  3. Build & run

    docker compose up --build
    
  4. Connect

    • VNC viewerlocalhost: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:

docker compose down
docker image rm discord-ai_discord-ai