'Python Discord Bot reproduce audio from youtube link

I'm trying to make my discord bot reporoduce audio from a link

@client.command()
async def play(ctx, url):
   #...code

but it seems that I need to have installed a program called FFmpeg, and the problem is that i'm running my bot on replit.com,(which aparently you can't install nothing but packages) is there a way that I can play youtube audio links wihout installing any app, or there is any solution that someone can tell me?



Solution 1:[1]

It seems that in replit.com they solved the problem with not being able to install any program to solve this, they have created a template called Discordpy-Music-Boy

Here is the link: https://replit.com/@replit/Discordpy-Music-Bot#main.py

They removed the capacity to install FFmpeg because it was initially used for botting and spamming, so they removed the functionality, as this post explains:

https://replit.com/talk/ask/Installing-FFmpeg/28721

And theres is no need to install nothing since it solves the problem with the FFmpeg using another package called youtube_dl that resolve most of the problem, but it's not perfect as some commands don't work, but it works fine for a small project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1