From 3a3a4234a6bbf789b991e7299d3a312d5b50a0e1 Mon Sep 17 00:00:00 2001 From: Vachan MN Date: Sat, 30 Oct 2021 16:03:13 +0530 Subject: [PATCH] set ytdl options --- bot.js | 8 ++++++++ events/onReady.js | 3 +++ 2 files changed, 11 insertions(+) diff --git a/bot.js b/bot.js index ac31db7..c703d98 100644 --- a/bot.js +++ b/bot.js @@ -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', + + } }) diff --git a/events/onReady.js b/events/onReady.js index 4b11b45..81b05e1 100644 --- a/events/onReady.js +++ b/events/onReady.js @@ -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}`); }, };