Ask coding questions

← Back to all posts
Can i host a lavalink music bot on repl.it
h
raghavken (3)

Hey so I recently made a music discord bot using lavalink the only downside is that you need Java 11 installed is it possible to host my lavalink bot with replit if so how because IDK if you can have java 11 installed in a nodejs repl

Comments
hotnewtop
LuckyCypher (1)

this is impossible, you can only on a pc or an raspberry pi with linux or ubuntu installed on it

BattleMaple (0)

@LuckyCypher Not really. I got it to work in a repl.

LuckyCypher (1)

@BattleMaple i think ur dumb, u need at least java 11

BattleMaple (0)

@LuckyCypher Hello! Please do not say I am dumb. Lavalink does indeed work as you can see on this screenshot. I even was able to successfully establish a connection between lavalink and the bot, so I think it works perfectly.

Tmorrow (1)

@BattleMaple can you please explain how did you do that?

BattleMaple (0)

Hello @Tmorrow! You can find it and fork one of my repls as I made a public one. Still there is one thing you should note. You need to use the bot in the same repl as it is quite a difficult thing to connect to it from the outside if the repl is private.

Tmorrow (1)

@BattleMaple got it! (I usually don't do that but) hello to you to! you are very friendly :)

blueediscord (0)

i wanna add you in discord, can u give me username# @BattleMaple

BattleMaple (0)

@blueediscord Sorry for late response! Yes, if you want to speak with me on Discord I will give you a server invite that can be only used once. It will expire upon a join. Please respond to this once you have joined, so I would know it is you and not some random person.
https://discord.gg/xRFsjdC6

arya1530 (0)

@BattleMaple did you ever got 308 error? I got this error when trying to connect to my lavalink server.

Message: Unexpected server response: 308 | Error | Error: Unexpected server response: 308

i've tried to use my own files and your public lavalink but both didn't work

edit:
So i figured it out. Repl redirecting me from http to https. But idk how to prevent from redirecting so i can connect to lavalink

SixBeeps (5037)

All "runners" have all of the languages installed, so you should be good.

raghavken (3)

@SixBeeps i tried yesterday and i tried to do java --version but nothing happened just said bash: java not a thing or something idk

SixBeeps (5037)

@raghavken Huh, I just got hit with the Mandela effect. In that case I have no idea how to install it. Maybe try a Polygott Repl?

HackermonDev (2007)

I'm pretty sure Java should be installed on a nodejs repl. Did you try and run it

raghavken (3)

@PDanielY nope i havent i was asking if i can do it lol

WearifulCupid0 (0)

You can try with python, It comes with java 11 installed.

BattleMaple (0)

Hmm.. Even if you get lavalink to work it wouldn't really help much, because the node.js version is very old if I am correct. Due to that you can't host node.js Discord bots.