Kakarot-2000 / Wall-E

Discord Bot using Python to play music
27 stars 31 forks source link

The bot is not connected to a voice channel error #3

Closed RVZWN closed 4 months ago

RVZWN commented 3 years ago

I host my bot on repl.it I downloaded the files, it plays the song in my files, I see the title and when I click it there it is in an audio format, but the bot itself does not play it and tells me he isn t connected to a voice channel, help. I followed the steps from the other 2 issues but nothing worked, please help !!!!

Kakarot-2000 commented 3 years ago

Hi @RVZWN , When I just checked now, it shows an error "discord.ext.commands.errors.CommandInvokeError: Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice" in the console (not sure why this wasn't happening before). Installing the PyNaCl library fixed the issue for me. Please do a pip install from the console and see if it fixes the issue for you✌

RVZWN commented 3 years ago

@Kakarot-2000 I have the PyNaCl up to date (1.4.0) ... still can't find the issue, I uploaded the /bin folder from ffmpeg and it still does not work akaneproblem1 bin code

RVZWN commented 3 years ago

@Kakarot-2000 and also, in my console there is are no errors as far as I can see

RVZWN commented 3 years ago

@Kakarot-2000 and again, I am doing everything, coding, hosting, etc on repl.it, is a website

RVZWN commented 3 years ago

Oh yeah, and also @Kakarot-2000, when I'm making him join the channel and play, it does not really play the song but I can see that he recognises the song, it appears in the files as shown and I can play the song in the perl.it itself not on discord.. wtffff wtfffff

RVZWN commented 3 years ago

@Kakarot-2000 these are the packs that I've installed installedpacks

Kakarot-2000 commented 3 years ago

Hey @RVZWN , have you tried testing locally before deploying? If there were any errors specific to the code then it should show up when testing locally.

RVZWN commented 3 years ago

@Kakarot-2000 Yes, I tried.. and nothing seems to be wrong

RVZWN commented 3 years ago

@Kakarot-2000 I think I solved it, it takes a good while until the bot starts singing but I think I nailed it, I simply removed every other specification in that command, leaving it like this : voice_channel.play(discord.FFmpegPCMAudio(filename))

That fixed it, idk :))

Kakarot-2000 commented 3 years ago

@RVZWN Glad to know that it got fixed. What part of the code did you remove for this? Was it from the play() method or somewhere else?

PilotaSbiellato commented 2 years ago

@RVZWN I tried to simplify the command as you did, but unfortunately it keep telling me it's not connected to the voice channel without printing any error