Skip to content

Commit dfbc942

Browse files
committed
chore: add cookies option for youtube plugin
1 parent f36401e commit dfbc942

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ client.cooldowns = {};
1818

1919
// Create DisTube instance
2020
client.distube = new DisTube(client, {
21-
plugins: [new YouTubePlugin()],
21+
plugins: [new YouTubePlugin({ cookies: JSON.parse(fs.readFileSync("./admin/ytCookies.json")) })],
2222
nsfw: config.DISTUBE_NSFW,
2323
savePreviousSongs: config.DISTUBE_SAVE_PREVIOUS_SONGS,
2424
customFilters: config.DISTUBE_CUSTOM_FILTERS

0 commit comments

Comments
 (0)