File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -17,13 +17,9 @@ client.cooldowns = {};
1717
1818// Create DisTube instance
1919client . 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
You can’t perform that action at this time.
0 commit comments