root support

This commit is contained in:
synt-xerror
2026-03-17 08:10:16 -03:00
parent 92e2ea2337
commit ae256da596
2 changed files with 11 additions and 2 deletions

3
.gitignore vendored
View File

@@ -7,4 +7,5 @@ node_modules/
cookies.txt
bin/
mychats.txt
manybot.conf
manybot.conf
update.log

View File

@@ -16,7 +16,15 @@ logger.info(isTermux
// ── Instância ─────────────────────────────────────────────────
export const client = new Client({
authStrategy: new LocalAuth({ clientId: CLIENT_ID }),
puppeteer: { headless: true, ...resolvePuppeteerConfig() },
puppeteer: {
headless: true,
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
...(resolvePuppeteerConfig().args || [])
],
...resolvePuppeteerConfig()
},
});
// ── Eventos ───────────────────────────────────────────────────