

Url = VideosSearch(" ".join(name), 1).result().get("result").get("link")Īwait ctx. To keep your digital space safe, kind, and spam-free, consider adding a couple of these bots: Captcha.bot: When you join a new server with Captcha.

Self.music_queue = def play(self, ctx, *name): Voice_ay(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS)) Info = ydl.extract_info(self.music_queue.pop(0), download=False) This is the code we're currently using for the music bot: from discord import FFmpegPCMAudioįrom import AsyncIOSchedulerįrom import CronTriggerįrom youtubesearchpython import VideosSearchĬlass cmd_music(commands.Cog, name="music_commands"): I'm interested in how to fix this and the explanation for why this is happening. Hydra Bot Hydra Bot is a feature riched discord bot that you can play music on your server. It's also very impractical since downloading a 1h song takes a while and is space consuming. But the quality was still far from anything like Fredboat's. The only thing that improved quality a little bit was downloading the song before playing it. I've built a discord music bot in discord.py but for some reason, it doesn't play music in as high quality as Fredboat or Rythm(so I don't think voice chat's bitrate is the problem).
