Ask coding questions

← Back to all posts
Discord.py Music Bot
lazymunch

I'm new to writing Bots, I've done some small things in the past.

I have two issues. First, I'm trying to get this music bot template to work, but I either get "An error occurred: Command raised an exception: DownloadError: ERROR: 35F3UelPnxw: YouTube said: Unable to extract video data"

If I try to play a video, or "An error occurred: Command raised an exception: DownloadError: ERROR: query "dangerzone": Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)'))"

If I search one.

Second, what I am after, is not necessarily a music bot, but a bot that, on command, can join a Voice Channel and play a SPECIFIC video.

I want a bot with a list of pre-decided video/urls, and when a certain command is typed, it will join the VC to play them, and then leave.

Can anyone help me? I've been scratching my head with this for ages, but I have no idea what I'm doing.

Voters
LFY10
lazymunch
Comments
hotnewtop
Blaze10k

pip install --upgrade youtube_dl

do this in shell