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
Trunks8257 (0)

Hi, I'm actually doing this in nodejs and I'm getting the same as before the file was added (the bot joins the vc but doesn't play nothing). I'm using Discord.js 12.2.0 and ffmpeg-static.

Trunks8257 (0)

idk if it could be useful but I get an error

[VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.

Scoder12 (771)

@Trunks8257 I don't know whether it works on discord.js.

Trunks8257 (0)

@Scoder12
Ok,no problem. Do you know any way of doing it in discord.js?

amasad (3063)

@Trunks8257 it turned out we blocked UDP ports. I just made an exception to discord. Try it out and let me know if it works.

FalcoPheonixYT (0)

@Trunks8257 Same is happening with me still this issue is not resolved