mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
modified puppeteer launch arguments
This commit is contained in:
@@ -107,7 +107,7 @@ module.exports = class Play extends Command {
|
|||||||
}
|
}
|
||||||
} else if (query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)) {
|
} 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 link = query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)[0];
|
||||||
const browser = await puppeteer.launch({ timeout: 0 });
|
const browser = await puppeteer.launch({ timeout: 0, args: ['--no-sandbox'] });
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
page.setDefaultNavigationTimeout(0);
|
page.setDefaultNavigationTimeout(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user