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 +}