Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
set ytdl options
Browse files Browse the repository at this point in the history
  • Loading branch information
vachanmn123 committed Oct 30, 2021
1 parent 4bc1560 commit 3a3a423
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ client.distube = new DisTube.default(client, {
leaveOnFinish: true,
leaveOnStop: true,
plugins: [new SoundCloudPlugin.default(), new SpotifyPlugin.default()],
ytdlOptions: {
filter: "audioonly",
quality: "highestaudio",
audioBitrate: 240000,
averageBitrate: 240000,
audioQuality: 'AUDIO_QUALITY_MEDIUM',

}
})


Expand Down
3 changes: 3 additions & 0 deletions events/onReady.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
* @param {Object} client Main Application Client
*/
execute(client) {
client.user.setActivity("music for people", {
type: "PLAYING",
});
console.log(`Ready! Logged in as ${client.user.tag}`);
},
};

0 comments on commit 3a3a423

Please sign in to comment.