mirror of
https://github.com/cheveguerra/botLeiferAurik-Mod_2.0.git
synced 2026-04-20 20:59:19 +00:00
se agrego ejemplo de envio masivo
This commit is contained in:
21
app.js
21
app.js
@@ -175,14 +175,31 @@ const listenMessage = () => client.on('message', async msg => {
|
|||||||
*/
|
*/
|
||||||
if(message=='/spam'){
|
if(message=='/spam'){
|
||||||
const masivo = require('./spam.json')
|
const masivo = require('./spam.json')
|
||||||
|
var saludo;
|
||||||
|
var caritas;
|
||||||
function sleep(ms) {
|
function sleep(ms) {
|
||||||
return new Promise(resolve => setTimeout(resolve, ms));
|
return new Promise(resolve => setTimeout(resolve, ms));
|
||||||
}
|
}
|
||||||
async function retardo() {
|
async function retardo() {
|
||||||
for (i=0;i<masivo.length;i++) {
|
for (i=0;i<masivo.length;i++) {
|
||||||
console.log(masivo[i].numero+"@c.us");
|
console.log(masivo[i].numero+"@c.us");
|
||||||
client.sendMessage(masivo[i].numero+"@c.us", "Este es un mensaje de prueba para *"+masivo[i].numero+"*, HORA:*"+new Date().toLocaleTimeString()+"*");
|
var rnd = getRandomInt(1,7); // Random entre 1 y 6 segundos.
|
||||||
var rnd = getRandomInt(1,4); // Random entre 1 y 3 segundos.
|
if(rnd==1||rnd==4){saludo = "Hola ";}
|
||||||
|
else if(rnd==2||rnd==5){saludo = "Saludos ";}
|
||||||
|
else {saludo = "%saludo% ";}
|
||||||
|
if(rnd==1){caritas = "👨🏻🦰👩🏻🦰";}
|
||||||
|
else if(rnd==2){caritas = "👩🏻🦰👨🏻🦰";}
|
||||||
|
else if(rnd==3){caritas = "🧔🏽👧🏽";}
|
||||||
|
else if(rnd==4){caritas = "👧🏽🧔🏽";}
|
||||||
|
else if(rnd==5){caritas = "👩🏻🦰🧔🏽";}
|
||||||
|
else if(rnd==6){caritas = "🧔🏽👩🏻🦰";}
|
||||||
|
if(i % 20 === 0){console.log("******** VAN 20, HACEMOS PAUSA DE 10 SEGUNDOS ********"); await sleep(10000);} //
|
||||||
|
console.log(`============= Mandamos el mensaje ${i} ==============`);
|
||||||
|
var elTextoDelMensaje = caritas + " *" + saludo + "amigo tendero* ❗❗👋🏻\n🕊️ *GUNA* trae para ti dinámicas digitales, con las que podrás participar para ganar increíbles premios. 🏆💸💰\nSigue los siguientes pasos: 😃\n*1.* 📲Sigue la página de Yo Soy Guna en Facebook en la siguiente liga ➡️ https://www.facebook.com/yosoyguna\n*2.* 👉🏻Es importante des click en el botón Me Gusta 👍\n*3.* 🧐Sigue la dinámica que publicaremos , subiendo tu foto 📸 con los siguientes #yosoyguna #gunatenderos #gunachampions\n*4.* 🥳🎉En esta misma página , podrás ver publicados los ganadores🏅 y el tiempo en que serán elegidos. 💲 Además de tener acceso a increíbles promociones 🤑";
|
||||||
|
sendMedia(client, masivo[i].numero+"@c.us", "envioMasivoGuna.jpg");
|
||||||
|
await sleep(500);
|
||||||
|
client.sendMessage(masivo[i].numero+"@c.us", remplazos(elTextoDelMensaje));
|
||||||
|
// client.sendMessage(masivo[i].numero+"@c.us", "Este es un mensaje de prueba para *"+masivo[i].numero+"*, HORA:*"+new Date().toLocaleTimeString()+"*");
|
||||||
console.log(`Esperamos ${rnd} segundos...`);
|
console.log(`Esperamos ${rnd} segundos...`);
|
||||||
await sleep(rnd*1000);
|
await sleep(rnd*1000);
|
||||||
}
|
}
|
||||||
|
|||||||
75
spam.json
75
spam.json
@@ -1,38 +1,41 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"numero":"5215554192439"
|
"numero": "5215554192439"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215527026728"
|
"numero": "5215527026728"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numero":"5215554192439"
|
"numero": "5215527026728"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"numero": "5215554192439"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
3281
spam_1091.json
Normal file
3281
spam_1091.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user