Bump version to 2.3.6
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "manybot",
|
"name": "manybot",
|
||||||
"version": "2.3.5",
|
"version": "2.3.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-addon-api": "^7",
|
"node-addon-api": "^7",
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ export async function handleMessage(msg) {
|
|||||||
const chat = await msg.getChat();
|
const chat = await msg.getChat();
|
||||||
const chatId = getChatId(chat);
|
const chatId = getChatId(chat);
|
||||||
|
|
||||||
|
// 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;
|
if (!CHATS.includes(chatId)) return;
|
||||||
|
}
|
||||||
|
|
||||||
const ctx = await buildMessageContext(msg, chat, BOT_PREFIX);
|
const ctx = await buildMessageContext(msg, chat, BOT_PREFIX);
|
||||||
logger.msg(ctx);
|
logger.msg(ctx);
|
||||||
|
|||||||
@@ -17,7 +17,15 @@ if (!arg) {
|
|||||||
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
authStrategy: new LocalAuth({ clientId: CLIENT_ID }),
|
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) => {
|
client.on("qr", (qr) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user