Ask coding questions

← Back to all posts
Can i host a lavalink music bot on repl.it
h
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
RudeusJaymes
RafaelRocha13
AmadeusGray
LuckyCypher
PokemonLeader
raghavken
Comments
hotnewtop
LuckyCypher

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

BattleMaple

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

LuckyCypher

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

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.

Tmorrow

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

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.

Tmorrow

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

blueediscord

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

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

blueediscord

@BattleMaple sorry, its expired :/

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

noxitb

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

SixBeeps

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

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

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?

HackermonDev

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

raghavken

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

Chandankumar420

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

WearifulCupid0

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

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.

whearspeak

Did you arrive ?