Skip to content

DEsimas/yt-stream-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt-stream-bot

Discord bot for streaming youtube videos. Works like theatre. Requires one "human" account for streaming video from PC to channel and bot account for controlling first one's browser.

Inspired by Mantra27

Preview

Youtube link

Tecnologies

  • Node.js with typescript
  • discord.js v14 library for interacting with discord api
  • puppeteer to control chrome

Usage

  1. Install git, node, npm and chrome on your computer

  2. Use git clone https://github.com/DEsimas/yt-stream-bot to download source code

  3. Go to yt-stream-bot directory and create file called .env

  4. Put there bot settings:

TOKEN = <discord bot token>
CHANNEL = <id of text channel with commands>
ROLE = <user role id>
VP_WIDTH = <monitor width in pixels>
VP_HEIGHT = <monitor height in pixels>

*TOKEN *CHANNEL, ROLE - turn on developer mode and copy id using right click menu

  1. Install dependencies using npm i

  2. Start bot with npm run start:dev, crome browser will open

  3. Stream it using "human" account. Be careful this account can be blocked!

  4. Use !watch <video url> command to play video.

.env

TOKEN token for discord bot
CHANNEL id of text channel with commands
ROLE users with this role id can use bot, don't state for access from anybody
VP_WIDTH monitor width in pixels
VP_HEIGHT monitor height in pixels

About

Discord bot for streaming videos from youtube to voice channel

Resources

Stars

Watchers

Forks