Skip to content
← Back to Community
Why does my bot not join discord voice channel
Profile icon
IceyAyrton

I am trying to make a discord music bot but it is not working

Voters
Profile icon
UltraSteve
Profile icon
harshkadyan9836
Profile icon
ch1ck3n
Profile icon
TurtleAndrew
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

it seems you are trying to use strip incorrectly. Try fixing that

Profile icon
19wintersp

Your first issue is that your call to client.run (main.py:93) is inside the stop function, and so it won't run. You should remove the indent from the start, so that there are no spaces before the code.

Profile icon
IceyAyrton

@19wintersp
i did it and it still gives me an error when i type ?play(any youtube url)

Profile icon
19wintersp

@IceyAyrton
Please can you be specific? What error do you get?

Profile icon
19wintersp

@IceyAyrton
From looking at your logs, it looks like you need to install PyNaCl. You can do this with the package manager in the IDE sidebar, or with pip install pynacl.

Profile icon
IceyAyrton

@19wintersp
YOOO THANK YOU SO MUCH MAN FINALLY IT WORKS IDK HOW TO THANK YOU MAN

Profile icon
mikedamamangan

@IceyAyrton
hi! can you do a tutorial or the final code on how did you join your bot to a voice channel?