🎹 Discord Music Bots Native Support 🥁
amasad (3535)

At Repl.it we believe programming should useful, fun, and exciting. Discord bots have been something people loved to make with Repl.it ever since we enabled outbound network connections from repls (yes, we used to disable networking).

Discord music bots, however, didn't work very well if at all. At first, OPUS was missing from our Python environment. Then we also inadvertently blocked voice connections from our servers. So all in all it was a pain. However, today, I'm excited to announce that Music Bots natively work on Repl.it.

The only thing that's currently missing from our images is native ffmpeg support, but that can be worked around by installing ffmpeg-static from npm. I just added the following Python repl to templates to make it easy for you to get started.

I know it works in Node.js too but I didn't have the time to make a nice template. If anyone can make a very simple template for Node.js I'd love to include it in our template library.

You are viewing a single comment. View All
xxpertHacker (931)

With native OPUS, networking, and native always up Repls... Repl might just be suitable for hosting a powerful bot.

HackermonDev (2073)

@xxpertHacker It might be able to host a small bot (a bot in like 20 servers) but it can't host big bots (a bot in like 200+ servers) because of memory and ram.

xxpertHacker (931)

@PDanielY Yeah, there's also that, I forgot.

firefish (953)

@xxpertHacker Containers have limits. Don't push them.

amasad (3535)

@firefish I don't know, we run some production work on Repl.it on a single container and it serves lots of users. We also have a lot of big bots already hosted on repl.it.

I would try it. If your code is efficient it should work especially with the hacker plan.

In the future, we'll probably have to introduce an even bigger plan.

firefish (953)

@amasad Ok, I might just try it... sound interesting to me! :)

xxpertHacker (931)

@amasad @firefish The biggest problem with most bots hosted here is the actual code and language, usually, they're written in inefficient languages (ex: Python, JS), but what's worse is they're often set up in very inefficient ways.
If you set it up correctly, plan ahead, and know what you're doing, it can perform very well, but this applies even outside of Repl.it.

Eyseedoubleyou (25)

@amasad my bot has grown a lot and it's all on repl :D