From 1ecb71f44c778f063cf8b602e386cc0a9343de6e Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 11 Sep 2019 17:32:55 +0200 Subject: [PATCH] Don't use account to download --- commands/utility/download.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index d526491c..776bc64d 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -2,7 +2,6 @@ const { Command } = require('discord-akairo'); const fs = require('fs'); const youtubedl = require('youtube-dl'); const hbjs = require('handbrake-js'); -const { fbuser, fbpasswd } = require('../../config.json'); class DownloadCommand extends Command { constructor() { @@ -69,7 +68,7 @@ class DownloadCommand extends Command { } - let video = youtubedl(link, [`--username=${fbuser}`, `--password=${fbpasswd}`]); + let video = youtubedl(link); video.pipe(fs.createWriteStream(`./${fileName}.mp4`)); video.on('error', function error(err) { console.log('error 2:', err);