Bump version to 2.3.6
This commit is contained in:
@@ -16,7 +16,11 @@ export async function handleMessage(msg) {
|
||||
const chat = await msg.getChat();
|
||||
const chatId = getChatId(chat);
|
||||
|
||||
if (!CHATS.includes(chatId)) return;
|
||||
// se CHATS estiver vazio, ele pega todos os chats.
|
||||
// se nao, ele pega os que estão na lista.
|
||||
if (CHATS.length > 0) {
|
||||
if (!CHATS.includes(chatId)) return;
|
||||
}
|
||||
|
||||
const ctx = await buildMessageContext(msg, chat, BOT_PREFIX);
|
||||
logger.msg(ctx);
|
||||
|
||||
@@ -17,7 +17,15 @@ if (!arg) {
|
||||
|
||||
const client = new Client({
|
||||
authStrategy: new LocalAuth({ clientId: CLIENT_ID }),
|
||||
puppeteer: { headless: true },
|
||||
puppeteer: {
|
||||
headless: true,
|
||||
args: [
|
||||
'--no-sandbox',
|
||||
'--disable-setuid-sandbox',
|
||||
...(resolvePuppeteerConfig().args || [])
|
||||
],
|
||||
...resolvePuppeteerConfig()
|
||||
},
|
||||
});
|
||||
|
||||
client.on("qr", (qr) => {
|
||||
|
||||
Reference in New Issue
Block a user