From 8858912fb24862d6b27332e8fbd4e40ffd5d3e5b Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 21 May 2020 04:54:09 +0100 Subject: [PATCH] added default timeout --- commands/music/play.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/music/play.js b/commands/music/play.js index 85ab777..1027555 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -107,11 +107,9 @@ module.exports = class Play extends Command { } } else if (query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)) { const link = query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)[0]; - const browser = await puppeteer.launch({ timeout: 0, args: ['--no-sandbox'] }); + const browser = await puppeteer.launch({ args: ['--no-sandbox'] }); const page = await browser.newPage(); - page.setDefaultNavigationTimeout(0); - page.setDefaultTimeout(0); await page.goto(link, { waitUntil: 'networkidle2' }); const titleHandle = await page.$('title'); @@ -219,4 +217,4 @@ module.exports = class Play extends Command { return message.say({ embed }); } } -} \ No newline at end of file +}