OPUS SUPPORT FOR DISCORD MUSIC BOTS!
h
Scoder12 (771)

UPDATE: Now Repl.it has Native OPUS and Discord Music Bot support

The wait is over! You can now make music bots with discord! I have compiled libopus.so for repl.it which you can now use to make music bots.

To make your bot in python, all you have to do is fork the repl linked below.
If you want to use a different language than python for your bot, you need to download the .so file. Just fork the repl, press ctrl+shift+s, type php -S 0.0.0.0:8080, and then add /libopus.so.0.8.0 to the url of your repl to download the file. Next, upload this file into your repl.

Ask questions in the comments, I might be able to help.

Before you comment asking for help:

Try it first, then let me know whether it worked or not. If it worked for you I'll update the post, otherwise I'll help the best I can.

Enjoy, upvote if it helped you!

You are viewing a single comment. View All
TrainsRUs (5)

Still not working for me - The code hangs on await message.author.voice.channel.connect() and never completes. The bot physically joins the channel but any attempt to disconnect or play audio, it just Not connected to voice.

Scoder12 (771)

@TrainsRUs I got the same issue and have opened an issue in discord.py for it.

TrainsRUs (5)

@Scoder12 Yeah I think its a repl issue still - copied the code onto my windows PC and it works a dream (without the problem mentioned above). Have to keep that part of my bot locally hosted now though :(.

Scoder12 (771)

@TrainsRUs should work now! It was a repl.it issue!

TrainsRUs (5)

@Scoder12 Thanks, I'll give it a try and report back!

TrainsRUs (5)

@Scoder12 IT WORKS!!!!!
Thank you so much!

TrainsRUs (5)

@Scoder12 Audio quality on the free service is certainly limited though