DEV Community

Discussion on: Writing a music command for your discord.js bot (Updated March 2020)

Collapse
 
galnir profile image
Nir

Did you generate an API key from youtube? And did you clone my repo or copy code?

Collapse
 
syariefhdyttt profile image
Press F

I play the song and the bot suddenly exits the voice channel and says "Cannot play song"

Thread Thread
 
syariefhdyttt profile image
Press F • Edited

can't play playlist and bots don't join on Voice Channel
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
 
galnir profile image
Nir

So you did something wrong, did you generate an API key from youtube?

Thread Thread
 
syariefhdyttt profile image
Press F

yes i generated API key from youtube

Thread Thread
 
galnir profile image
Nir

Did you install everything I listed? Git, ffmpeg etc

Thread Thread
 
syariefhdyttt profile image
Press F

I installed everything in your package.json, and I didn't change it at all

Thread Thread
 
galnir profile image
Nir • Edited

I mean git, ffmpeg and python 2.7
It's in the prerequisites

Thread Thread
 
syariefhdyttt profile image
Press F

I have not installed ffmpeg and python2.7 on my computer, and I only install git

Thread Thread
 
syariefhdyttt profile image
Press F

What should I do after installing ffmpeg, python 2.7 and git?

Thread Thread
 
galnir profile image
Nir

You need to install them all, doesn't matter in which order

Thread Thread
 
syariefhdyttt profile image
Press F

I will try if there is a problem I will call you back, Thank you for the help.

Thread Thread
 
syariefhdyttt profile image
Press F

hello Nir, now the problem is here and I try to install node-opus in visual studio which is always error

thepracticaldev.s3.amazonaws.com/i...