Heroku Deployment, Libopus Not Found
I am trying to host a discord music bot in heroku, but even if it works fine in my local machine, it doesnt seem to be able to find the libopus library deployed. Here is my requir
Solution 1:
I had this issue, and now have a functioning music bot with heroku. Add this buildpack https://github.com/xrisk/heroku-opus.git and then redeploy your bot and restart the dyno. This should fix the error. If that still doesn't work then try adding to the start of your code
if not discord.opus.is_loaded():
# the 'opus' library here is opus.dll on windows# or libopus.so on linux in the current directory# you should replace this with the location the# opus library is located in and with the proper filename.# note that on windows this DLL is automatically provided for you
discord.opus.load_opus('opus')
Solution 2:
Unfortunately, Heroku can’t send the appropriate voice packets to discord, therefore you must self host or use a vps to use music. Somebody did find a loophole but idk if it was patched but chances are you won’t be able to get music https://i.stack.imgur.com/LWcF4.jpg
Post a Comment for "Heroku Deployment, Libopus Not Found"