You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(text.length<8)throw`*MΓnimo 10 caracteres para hacer El Reporte.*`
18
+
if(text.length>1000)throw`*MΓ‘ximo 1000 caracteres para hacer El Reporte.*`
19
+
20
+
letreportId=Math.floor(Math.random()*901);
21
+
22
+
ACTIVE_CONVERSATIONS[reportId]={
23
+
userId: m.sender,
24
+
userName: m.pushName||'Usuario desconocido',
25
+
active: true,
26
+
chatId: m.chat};
27
+
28
+
letreportText=text||(m.quoted&&m.quoted.text);
29
+
letownerMessage=`*βββ[ πππππππ ]βββ⬣*\n*β*\n*β* *ππππππ*\nβ β¦ Wa.me/${m.sender.split("@")[0]}\n*β*\n*β* *πππππΌπ π*\n*β* β¦ ${reportText}\n*β*\n*β°ββββββββββββββββββ⬣*\n\n> Responde al mensaje con: *"responder ${reportId} [mensaje]"* para interactuar con el usuarios.\n> Usa *.fin ${reportId}* para finalizar la conversaciΓ³n.`;
awaitconn.reply(m.chat,`β°β± *πΜππππ*\n\n*El reporte ha sido enviado a mΓ Creadora. TendrΓ‘ una respuesta pronto. De ser Falso serΓ‘ Ignorado el reporte.*`);
if(!ACTIVE_CONVERSATIONS[reportId]||!ACTIVE_CONVERSATIONS[reportId].active)returnawaitconn.reply(m.chat,`No se encontrΓ³ ninguna conversaciΓ³n activa con ese ID.`,m);
53
+
54
+
let{ userId }=ACTIVE_CONVERSATIONS[reportId];
55
+
awaitconn.reply(userId,`*Respuesta de mi propietario:*\n${ownerMessage}`);
0 commit comments