- Katılım
- 31 Ağu 2023
- Mesajlar
- 327
- Beğeniler
- 57
- İletişim

Linkleri görebilmek için kayıt olmanız gerekmektedir
About The Bot:
StreamBot – Discord Selfbot for Video Streaming
StreamBot is a Discord selfbot built with Node.js and Bun runtime that lets you stream local videos, YouTube links, Twitch streams, and more directly into Discord voice channels. It supports advanced features like looping videos, live stream handling, and a simple web interface for managing video files.
Important Warning:
Using selfbots (bots that control your own Discord account) violates Discord's Terms of Service . This may result in your account being banned. Use only for educational or personal purposes, and never on public servers or for malicious activities.
Features
- Stream local video files from a directory.
- Stream YouTube videos and live streams.
- Stream Twitch VODs or live streams.
- Search YouTube and play videos.
- Loop video playback.
- Custom stream settings (resolution, FPS, bitrate, hardware acceleration).
- Automatic screenshots for video previews using FFmpeg.
- Optional web server for managing videos via a browser.
- Logging with Winston for debugging.
- Auto-download/update yt-dlp binary.
- Mute audio during streams for silent playback.
Requirements
- Runtime: Bun (
Linkleri görebilmek için kayıt olmanız gerekmektedir)
- Node.js Modules: bun install (see package.json)
- External Tools:
- FFmpeg (must be in PATH)
- yt-dlp (auto-downloaded by the script)
- Discord Account: Your own token (not a bot token)
- OS: Linux, macOS, Windows (some features vary by OS)
Installation
- Clone the repository:
git clone
Linkleri görebilmek için kayıt olmanız gerekmektedir
cd discord-stream-selfbot
- Install dependencies:
bun install
- Install FFmpeg:
- Ubuntu/Debian: sudo apt install ffmpeg
- macOS: brew install ffmpeg
- Windows: Download from
Linkleri görebilmek için kayıt olmanız gerekmektedirand add to PATH
- Set up environment variables:
Create a .env file in the root:
TOKEN=your_discord_token_here
PREFIX=!
GUILD_ID=your_guild_id
COMMAND_CHANNEL_ID=your_command_channel_id
VIDEO_CHANNEL_ID=your_voice_channel_id
STREAM_WIDTH=1280
STREAM_HEIGHT=720
STREAM_FPS=30
STREAM_BITRATE_KBPS=1000
STREAM_MAX_BITRATE_KBPS=2500
STREAM_HARDWARE_ACCELERATION=false
SERVER_ENABLED=false
SERVER_USERNAME=admin
SERVER_PASSWORD=admin
SERVER_PORT=8080
- Prepare video files:
Place MP4s in the ./videos directory (default) – the bot lists them automatically on startup.
Running the Boat
bun run index.ts
The bot logs in, shows available videos, and joins the voice channel on command.
Optional: Using Docker
- Edit docker-compose.yml or docker-compose-warp.yml with your .env settings.
docker-compose up -d
Commands
- !play <video_name> [mute] – Streams a local video file.
- !playlink <url> – Streams from a URL (YouTube/Twitch).
- !ytplay <title or number> – Search YouTube and play.
- !ytlive <title> – Streams YouTube live.
- !stop – Stops stream and leaves channel.
- !list – Lists local videos.
- !refresh – Refresh video list.
- !info – Shows current stream info.
- !preview <video_name> – Generates screenshot previews via FFmpeg.
Notes
- Uses your own Discord account; streams appear as if you're sharing your screen.
- Web server (optional) allows uploading, downloading, deleting, and previewing videos.