mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 15:18:21 +00:00
Update bot.js
Updated bot.js to support secure option instead of just making it false
This commit is contained in:
parent
73846cbea6
commit
bd52f2a839
1 changed files with 5 additions and 3 deletions
|
|
@ -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],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue