Reputation: 940
My bot is all set up and running, everything works, EXCEPT for voice: He joins the channel, but doesnt play audio. I have heard many different claims for what the reason is (no permission to use ffmpeg.exe, missing buildpack, missing dependency, Heroku blocking UDP on free users...) - but i hope that someone here ACTUALLY knows what the problem is, because i couldnt find any definitive reason online.
This is the code of the bot: https://github.com/FlyingThunder/DiscordBot/blob/master/main.py
Everything is working fine on my machine.
This is the only error that Heroku logs gave me:
2020-07-24T06:28:30.329937+00:00 app[worker.1]: PermissionError: [Errno 13] Permission denied: 'res/ffmpeg.exe'
I already tried adding https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
to my buildpacks, and i added cffi==1.14.0
to my requirements.txt - both solutions that are supposed to fix this exact issue.
Upvotes: 0
Views: 582
Reputation: 3994
To host a music bot on heroku, you need:
https://github.com/kitcast/buildpack-ffmpeg.git
https://github.com/xrisk/heroku-opus.git
requirements.txt
:PyNaCl
wheel
ffmpeg
If your problem isn't solved after installings those packages and buildpacks, please share the music part of your code.
Upvotes: 1