From bd52f2a839a3d42f5c6b1611300d17441dc63678 Mon Sep 17 00:00:00 2001 From: fakesmile723 <69390477+fakesmile723@users.noreply.github.com> Date: Sun, 28 May 2023 10:26:40 +0530 Subject: [PATCH 1/2] Update bot.js Updated bot.js to support secure option instead of just making it false --- src/bot.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bot.js b/src/bot.js index 8f4b1e7..55fe5cb 100644 --- a/src/bot.js +++ b/src/bot.js @@ -68,7 +68,8 @@ if (clientID && clientSecret) { { host: process.env.LAVALINK_HOST || "lava.link", port: parseInt(process.env.LAVALINK_PORT) || 80, - password: process.env.LAVALINK_PASSWORD || "CorwinDev" + password: process.env.LAVALINK_PASSWORD || "CorwinDev", + secure: Boolean(process.env.LAVALINK_SECURE) || false }, ], send(id, payload) { @@ -89,7 +90,8 @@ if (clientID && clientSecret) { { host: process.env.LAVALINK_HOST || "lava.link", port: parseInt(process.env.LAVALINK_PORT) || 80, - password: process.env.LAVALINK_PASSWORD || "CorwinDev" + password: process.env.LAVALINK_PASSWORD || "CorwinDev", + secure: Boolean(process.env.LAVALINK_SECURE) || false }, ], send(id, payload) { @@ -216,4 +218,4 @@ client.on(Discord.ShardEvents.Error, error => { username: 'Bot Logs', embeds: [embed], }); -}); \ No newline at end of file +}); From c0db44f967a086e62592e50a2c00e594f3ebd2bd Mon Sep 17 00:00:00 2001 From: fakesmile723 <69390477+fakesmile723@users.noreply.github.com> Date: Sun, 28 May 2023 10:28:48 +0530 Subject: [PATCH 2/2] Update .env.example updated .env.example to support lavalink secure --- .env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.example b/.env.example index d6978f5..fd443da 100644 --- a/.env.example +++ b/.env.example @@ -14,4 +14,5 @@ SPOTIFY_CLIENT_SECRET= LAVALINK_HOST=lava.link LAVALINK_PASSWORD=I'm a secret LAVALINK_PORT=80 +LAVALINK_SECURE=false OPENAI=