A bot for playing youtube, soundcloud and more on Discord voice chat channels.
You will need a 64-bit OS for running this on, since node-opus does not support 32-bit operating systems.
- Install nodejs and npm.
- Run
npm install
in the directory the bot is in - Open bot.js and fill in the username and password for the bot
- Run it!
Finding the text channel ID is fairly easy, just use the last number in the URL.
https://discordapp.com/channels/93925271886897152/93925271886897152
becomes 93925271886897152
To find the audio channel, right click the channel you want to add the bot to, and click inspect.
Then, from the highlighted section, copy the text after the $ and before the dot.
<span class="channel-name" data-reactid=".0.1.1.0.1.0.1.0.0.3.$127861585304616960.0.1">The Men's Room (AFK)</span>
becomes 127861585304616960
.
If you get an error related to ffmpeg, make sure it is installed (https://www.ffmpeg.org/) and added to your PATH.