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, 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
tpunn19 (7)

Hi, my entire bot is written in JavaScript, so I would like to continue using Discord.js instead of Discord.py. I don't seem to understand based on your article on how to add OPUS. If there is no way, then I will write my next bot in Python (though I prefer JavaScript).

tpunn19 (7)

I tried doing it, and it says: [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.

Scoder12 (771)

@tpunn19 I'm trying to get this to work and I will let you know if I can figure it out.

tpunn19 (7)

@Scoder12 Did you get anything yet? Just checking.

Scoder12 (771)

@tpunn19 havent been working on it at all

amasad (3033)

@tpunn19 Hey I just put out a potential fix. Let me know if it works for you now.