Initial Mod v2

This commit is contained in:
2022-12-11 03:41:41 -06:00
parent 4334c13cca
commit ac8c09c665
19 changed files with 1047 additions and 408 deletions

View File

@@ -69,7 +69,7 @@ const createClient = () => {
authStrategy: new LocalAuth(
{dataPath: './sessions/',
clientId: 'bot'}),
puppeteer: { headless: false }
puppeteer: { headless: false, args: ['--no-sandbox','--disable-setuid-sandbox'] }
});
}
@@ -80,4 +80,4 @@ const isValidNumber = (rawNumber) => {
return !exist
}
module.exports = {cleanNumber, saveExternalFile, generateImage, checkIsUrl, checkEnvFile, createClient, isValidNumber}
module.exports = {cleanNumber, saveExternalFile, generateImage, checkIsUrl, checkEnvFile, createClient, isValidNumber}