Skip to content

Commit 2448471

Browse files
committed
chore: remove invalid distube options
1 parent 3b43a4c commit 2448471

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

admin/config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ module.exports = {
1414
MONGO_SERVER_SELECTION_TIMEOUT_MS: 5000, // Time in milliseconds to find a server to send an operation before failing
1515
MONGO_SOCKET_TIMEOUT_MS: 45000, // Time in milliseconds before killing a socket due to inactivity
1616
MONGO_FAMILY: 4, // Internet protocol version (4: IPv4, 6: IPv6, 0: both)
17-
DISTUBE_LEAVE_ON_FINISH: false, // Leave the voice channel when queue ends
18-
DISTUBE_LEAVE_ON_STOP: false, // Leave the voice channel when queue is stopped
19-
DISTUBE_LEAVE_ON_EMPTY: false, // Leave the voice channel when it is empty
2017
DISTUBE_SEARCH_MAX_RESULTS: 20, // Max. number of search results
2118
DISTUBE_NSFW: true, // Play age-restricted content
2219
DISTUBE_SAVE_PREVIOUS_SONGS: false, // Save previous songs in queue

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ client.cooldowns = {};
1717

1818
// Create DisTube instance
1919
client.distube = new DisTube(client, {
20-
leaveOnFinish: config.DISTUBE_LEAVE_ON_FINISH,
21-
leaveOnStop: config.DISTUBE_LEAVE_ON_STOP,
22-
leaveOnEmpty: config.DISTUBE_LEAVE_ON_EMPTY,
2320
nsfw: config.DISTUBE_NSFW,
2421
savePreviousSongs: config.DISTUBE_SAVE_PREVIOUS_SONGS,
25-
customFilters: config.DISTUBE_CUSTOM_FILTERS,
26-
youtubeCookie: JSON.parse(fs.readFileSync("./admin/ytCookies.json"))
22+
customFilters: config.DISTUBE_CUSTOM_FILTERS
2723
});
2824

2925
// Read command files

0 commit comments

Comments
 (0)