Fix proxy (again?!?!)

This commit is contained in:
Loïc Bersier 2020-08-26 16:36:12 +00:00
parent 1494d94be0
commit b84ec367d5

View file

@ -178,7 +178,7 @@ class ytpCommand extends Command {
url = await attachment(message); url = await attachment(message);
if (url) { if (url) {
return downloader(url, ['--format=mp4', '--proxy', proxy[args.proxy]], `./asset/ytp/userVid/${message.id}.mp4`) return downloader(url, ['--format=mp4', '--proxy', proxy[args.proxy].ip], `./asset/ytp/userVid/${message.id}.mp4`)
.on('error', (err) => { .on('error', (err) => {
loadingmsg.delete(); loadingmsg.delete();
return message.channel.send(err, { code: true }); return message.channel.send(err, { code: true });