From 7bef46bb0c1d788a30993e853cd232166dfc259f Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 5 Dec 2018 00:54:28 +0100 Subject: [PATCH] --- 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 c303cf2f..800f97f0 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -2,7 +2,6 @@ const { Command } = require('discord.js-commando'); const fs = require('fs'); const youtubedl = require('youtube-dl'); const SelfReloadJSON = require('self-reload-json'); - const { fbuser, fbpasswd } = require('../../config.json'); module.exports = class downloadCommand extends Command { @@ -35,7 +34,7 @@ module.exports = class downloadCommand extends Command { }) }) let video = youtubedl(link, [`--username=${fbuser}`,`--password=${fbpasswd}`]) - video.pipe(fs.createWriteStream('video.mp4')) + video.pipe(fs.createWriteStream('./video.mp4')) video.on('error', function error(err) { console.log('error 2:', err); message.say("An error has occured, i can't download from the link you provided.")