Skip to content
← Back to Community
Can i host a lavalink music bot on repl.it
Profile icon
raghavken

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

Voters
Profile icon
MahmoudYasser10
Profile icon
deadliferp
Profile icon
HachiroNich
Profile icon
RafaelRocha13
Profile icon
AmadeusGray
Profile icon
LuckyCypher
Profile icon
PokemonLeader
Profile icon
raghavken
Comments
hotnewtop
Profile icon
idleBoe

i am getting error like Lavalink node not connected in my bot replit and Info: Lavalink: Node Main had an error: getaddrinfo ENOTFOUND https in lavalink replit.

does anyone know how to solve this.

Profile icon
LuckyCypher

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

Profile icon
BattleMaple

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

Profile icon
LuckyCypher

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

Profile icon
BattleMaple

@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.
Screenshot_115

Profile icon
Tmorrow

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

Profile icon
BattleMaple

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.

Profile icon
Tmorrow

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

Profile icon
blueediscord

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

Profile icon
BattleMaple

@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

Profile icon
blueediscord

@BattleMaple sorry, its expired :/

Profile icon
arya1530

@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

Profile icon
noxitb

@BattleMaple can you help me set up my lavalink server please

Profile icon
SixBeeps

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

Profile icon
raghavken

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

Profile icon
SixBeeps

@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?

Profile icon
HackermonDev

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

Profile icon
raghavken

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

Profile icon
Chandankumar420

Can i able to do ip rotation in repl.it lavalink server

Profile icon
WearifulCupid0

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

Profile icon
BattleMaple

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.

Profile icon
whearspeak

Did you arrive ?