diff --git a/.env.example b/.env.example deleted file mode 100644 index 82c53b4..0000000 --- a/.env.example +++ /dev/null @@ -1,19 +0,0 @@ -DISCORD_TOKEN= -MONGO_TOKEN= -GIPHY_TOKEN= -WEBHOOK_ID= -WEBHOOK_TOKEN= -DISCORD_ID= - -# Not neccessary variables -# Wondering how to get these? Check out https://github.com/CorwinDev/Discord-Bot#requirements -DISCORD_STATUS="Listening to meself, I'm a stupid bot, https://github.com/corwindev/discord-bot" -RADIO= -TOPGG_TOKEN= -SPOTIFY_CLIENT_ID= -SPOTIFY_CLIENT_SECRET= -LAVALINK_HOST=lava.link -LAVALINK_PASSWORD=I'm a secret -LAVALINK_PORT=80 -LAVALINK_SECURE=false -OPENAI= diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fb75e7e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +services: + lavalink: + # pin the image version to Lavalink v4 + image: ghcr.io/lavalink-devs/lavalink:4 + container_name: lavalink + restart: unless-stopped + environment: + # set Java options here + - _JAVA_OPTIONS=-Xmx6G + # set lavalink server port + - SERVER_PORT=2333 + # set password for lavalink + - LAVALINK_SERVER_PASSWORD=youshallnotpass + volumes: + # mount application.yml from the same directory or use environment variables + - ./application.yml:/opt/Lavalink/application.yml + # persist plugins between restarts, make sure to set the correct permissions (user: 322, group: 322) + - ./plugins/:/opt/Lavalink/plugins/ + networks: + - lavalink + expose: + # lavalink exposes port 2333 to connect to for other containers (this is for documentation purposes only) + - 2333 + ports: + # you only need this if you want to make your lavalink accessible from outside of containers + - "2333:2333" +networks: + # create a lavalink network you can add other containers to, to give them access to Lavalink + lavalink: + name: lavalink \ No newline at end of file diff --git a/package.json b/package.json index 70e1009..0b694c9 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "moment": "^2.29.4", "moment-duration-format": "^2.3.2", "moment-timezone": "^0.5.39", + "mongodb": "^6.5.0", "mongoose": "^6.8.0", "ms": "^2.1.3", "node-fetch": "^2.6.6",