mirror of
https://github.com/cheveguerra/botGuna.git
synced 2026-04-19 20:29:18 +00:00
Merge branch 'NoInitial' of https://github.com/cheveguerra/botLeiferAurik-Mod_2.0 into NoInitial
This commit is contained in:
10
app.js
10
app.js
@@ -56,7 +56,9 @@ listenMessage = () => client.on('message', async msg => {
|
|||||||
// const uv = traeUltimaVisita(from, 's')
|
// const uv = traeUltimaVisita(from, 's')
|
||||||
// console.log("ultVista=", uv)
|
// console.log("ultVista=", uv)
|
||||||
|
|
||||||
if(!isValidNumber(from)){ return }
|
if(!isValidNumber(from)){
|
||||||
|
return
|
||||||
|
}
|
||||||
// Este bug lo reporto Lucas Aldeco Brescia para evitar que se publiquen estados
|
// Este bug lo reporto Lucas Aldeco Brescia para evitar que se publiquen estados
|
||||||
if (from === 'status@broadcast') { return }
|
if (from === 'status@broadcast') { return }
|
||||||
/**
|
/**
|
||||||
@@ -66,12 +68,6 @@ listenMessage = () => client.on('message', async msg => {
|
|||||||
console.log('BlackListed: ',blackList.includes(from.replace("@c.us","")))
|
console.log('BlackListed: ',blackList.includes(from.replace("@c.us","")))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Blacklist, los telefonos inlcuidos en este arreglo son ignorados por el bot.
|
|
||||||
*/
|
|
||||||
console.log('BlackListed: ',blackList.includes(from.replace("@c.us","")))
|
|
||||||
if (blackList.includes(from.replace("@c.us",""))) return
|
|
||||||
message = newBody.toLowerCase();
|
message = newBody.toLowerCase();
|
||||||
const number = cleanNumber(from)
|
const number = cleanNumber(from)
|
||||||
client.theMsg['numero'] = number
|
client.theMsg['numero'] = number
|
||||||
|
|||||||
Reference in New Issue
Block a user