Moumirrai / FLAVUS

Lavalink music bot
3 stars 1 forks source link

Running #29

Open neptalu0 opened 1 year ago

neptalu0 commented 1 year ago

How do you run this?

tried run build then run start. gets stuck at mongo or any lavalink url getting errors

screen: IMG_20230601_183637

Moumirrai commented 1 year ago

Hi, sorry, I didn't expect anyone to find this repo, so the documentation is a bit outdated xd. You'll need valid mongodb instance, ds bot token, id and secret.

Here is updated example .env file:

TOKEN=<BOT_TOKEN>
OWNER=<YOUR_DS_ID>
CLIENT_ID=<CLIENT_ID>
CLIENT_SECRET=<CLIENT_SECRET>
REDIRECTURI=http://192.168.0.199:3000/
PREFIX=<BOT_PREFIX>
LEAVE_ON_EMPTY_CHANNEL=<NOT_SURE_IF_THIS_EVEN_WORKS>
SAVELOGS=<BOOLEAN>
DEBUGMODE=true

# Shard config
## Sharding is not supported at the moment, so wahtever
SHARD_COUNT=1

# Express config
PORT=4848 # i forgot why i put this here

# Lavalink credentials
LAVALINK_HOST=lavalink.flavus.xyz
#LAVALINK_HOST=localhost
LAVALINK_PORT=2333
LAVALINK_PASSWORD=<LAVALINK_PASSWORD>
LAVALINK_SECURE=false
LAVALINK_RETRY_DELAY=5000

# Lavalink client config
CLIENT_NAME=Lavalink
CLIENT_VERSION=1.0.0

# Mongodb config
MONGODB_SRV=<MONGODB_SRV>

# Spotify config
SPOTIFY_ID=<SHOULD_NOT_BE_NEEDED>
SPOTIFY_SECRET=<SHOULD_NOT_BE_NEEDED>

# Api
API=false # if you don't need the api, set this to false
APIPORT=3030
SECRET=<SEED_FOR_CRYPTR>
CERT_PATH=./certs/ # not needed anymore, TODO: remove this and mentions
#SSL=false
METRICS_TOKEN=<WHATEVER_RANDOM_STRING>

Feel free to contact me on discord for any additional info :)

Freedom#2453

Moumirrai commented 1 year ago

Oh, and I'm currently using the socketRooms branch. I haven't touched main in a while, so I don't know if it works.