Quick way to stream video to Discord voice channels.
npm install
npm run build && npm start# Install PM2 globally (if not already installed)
npm install -g pm2
# Start the bot with PM2
npm run build
pm2 start npm --name "streambot" -- start
# View status
pm2 status
# View logs
pm2 logs streambot
# Stop the bot
pm2 stop streambot
# Restart the bot
pm2 restart streambot
# Delete from PM2
pm2 delete streambot
# Save PM2 process list (auto-start on server reboot)
pm2 save
pm2 startupCopy .env.example to .env and fill in:
TOKEN="your_token_here" # Discord token (required)
GUILD_ID="server_id" # Server ID
COMMAND_CHANNEL_ID="channel_id" # Command channel ID
VIDEO_CHANNEL_ID="channel_id" # Voice channel ID
PREFIX="$" # Command prefix- Open Discord in browser
- Press
Ctrl+Shift+I→ Console tab - Paste the script below and press Enter
- Token will be automatically copied to clipboard
window.webpackChunkdiscord_app.push([
[Symbol()],
{},
req => {
if (!req.c) return;
for (let m of Object.values(req.c)) {
try {
if (!m.exports || m.exports === window) continue;
if (m.exports?.getToken) return copy(m.exports.getToken());
for (let ex in m.exports) {
if (m.exports?.[ex]?.getToken && m.exports[ex][Symbol.toStringTag] !== 'IntlMessagesProxy') return copy(m.exports[ex].getToken());
}
} catch {}
}
},
]);
window.webpackChunkdiscord_app.pop();
console.log('%cWorked!', 'font-size: 50px');$play https://youtube.com/watch?v=xxx # Stream YouTube
$play nama_file.mp4 # Play local file
$play search term # Search YouTube
| Command | Description |
|---|---|
| $play | Play video |
| $stop | Stop streaming |
| $skip | Skip to next video |
| $queue | Show queue |
| $list | Show local files |
Open http://localhost:8080 to upload and manage videos from browser.
- Node.js v21+
- FFmpeg
- yt-dlp