I am making a discord.py bot and I wanted it to play some music. I have the code an everything but I never figured out how to get the executable of FFmpeg on my repl. I tried ffmpeg-static once and it did detect ffmpeg but I got an error because opus was not loaded. Has anyone figured out how to make a music bot with discord.py? I know that there was a very old template (It used 1.0.1 discord.py) that worked by installing the static-ffmpeg npm package but I never figured out how to make one from scratch.
Use nix to install packages and libraries such as ffmpeg.
Yeah thanks I figured it out.
I got it to work.
For anyone interested in making a music bot all you have to do is add
pkgs.ffmpeg.bin to your dependencies in the
replit.nix file then add
PYTHON_LD_LIBRARY_PATH and you are good to go!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.