Ask coding questions

← Back to all posts
Does someone why this happens. (music.py)
h
Primefirst

When i start my bot and makes it join the vc it works fine except when i type !play it wont play anything. Its only the !play command i think. The music python file is located in ./cogs/music.py

Voters
Primefirst
Comments
hotnewtop
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Hello, i found in the code that you're trying to do something with the IP https://127.0.0.1:2333, which is only accessible with your computer, locally. Replit does not have access to that URL, and causing an error.

Another explanation:

youtube is blocked discord music bots, which may be causing the error.

Primefirst

@aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Yeah i heard about the discord blocking music bots, but that isnt happening until next month or something. Most likely the reason is the first thing you said with the IP. Do you have any ideas on what i could do instead then?

SixBeeps

Are you getting any errors in the console?

VulcanWM

Only replit audio works mostly fine on replit
I recommend you to use it instead

SixBeeps

@VulcanWM They're making a Discord bot. Repl Audio does not apply here.

VulcanWM

oh okay @SixBeeps