@pontalabs/baileys 1.1.4 → 1.1.5

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.
@@ -384,4 +384,4 @@ module.exports = {
384
384
  fromUnicodeEscape: fromUnicodeEscape,
385
385
  asciiEncode: asciiEncode,
386
386
  asciiDecode: asciiDecode,
387
- };
387
+ };
package/lib/index.js CHANGED
@@ -1,60 +1,12 @@
1
1
  "use strict";
2
2
 
3
- const gradients = [
4
- { c1: [255, 80, 120], c2: [255, 180, 210] },
5
- { c1: [140, 90, 255], c2: [90, 200, 255] },
6
- { c1: [0, 200, 255], c2: [120, 255, 220] },
7
- { c1: [255, 170, 0], c2: [255, 255, 120] }
8
- ];
9
-
10
- const pkg = {
11
- name: "Pontalabs",
12
- version: "1.1.9",
13
- developer: "Ponta",
14
- author: "Ramacodex"
15
- };
16
-
17
- const mottos = [
18
- "Pontalabs — Fast & Reliable.",
19
- "Built for WhatsApp bots.",
20
- "Modern Baileys modification.",
21
- "Optimized for performance.",
22
- "Simple and efficient.",
23
- "Reliable automation starts here.",
24
- "Designed for developers.",
25
- "Lightweight and powerful.",
26
- "Made for better messaging.",
27
- "Your trusted Baileys fork."
28
- ];
29
-
30
- const g = gradients[Math.floor(Math.random() * gradients.length)];
31
- const motto = mottos[Math.floor(Math.random() * mottos.length)];
32
-
33
- const gradient = (text) =>
34
- text
35
- .split("")
36
- .map((ch, i, arr) => {
37
- const t = i / (arr.length - 1 || 1);
38
- const r = Math.round(g.c1[0] + (g.c2[0] - g.c1[0]) * t);
39
- const gg = Math.round(g.c1[1] + (g.c2[1] - g.c1[1]) * t);
40
- const b = Math.round(g.c1[2] + (g.c2[2] - g.c1[2]) * t);
41
- return `\x1b[38;2;${r};${gg};${b}m${ch}`;
42
- })
43
- .join("") + "\x1b[0m";
3
+ const rgb = (r, g, b, text) => `\x1b[38;2;${r};${g};${b}m${text}\x1b[0m`;
44
4
 
45
5
  console.log(`
46
- ${gradient("👋🍀 Baileys PontaLabs")}
47
- ${gradient("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")}
48
- ${gradient(` Version : ${pkg.version}`)}
49
- ${gradient(` Thanks To : ${pkg.author}`)}
50
- ${gradient(` Developer : ${pkg.developer}`)}
51
-
52
- ${gradient(` ${motto}`)}
53
- ${gradient("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")}
6
+ ${rgb(0, 255, 170, "Welcome Baileys PontaLabs")}
7
+ ${rgb(180, 180, 180, "Terimakasih telah menggunakan baileys ini.")}
54
8
  `);
55
9
 
56
-
57
-
58
10
  const __createBinding =
59
11
  (this && this.__createBinding) ||
60
12
  (Object.create
@@ -75,6 +27,7 @@ const __createBinding =
75
27
  if (k2 === undefined) k2 = k;
76
28
  o[k2] = m[k];
77
29
  });
30
+
78
31
  const __exportStar =
79
32
  (this && this.__exportStar) ||
80
33
  function (m, exports) {
@@ -84,8 +37,10 @@ const __exportStar =
84
37
  }
85
38
  }
86
39
  };
40
+
87
41
  Object.defineProperty(exports, "__esModule", { value: true });
88
42
  exports.proto = exports.makeWASocket = null;
43
+
89
44
  const { proto: proto } = require("../WAProto");
90
45
  Object.defineProperty(exports, "proto", {
91
46
  enumerable: true,
@@ -93,7 +48,9 @@ Object.defineProperty(exports, "proto", {
93
48
  return proto;
94
49
  },
95
50
  });
51
+
96
52
  const { default: socket } = require("./Socket");
53
+
97
54
  exports.makeWASocket = socket;
98
55
  __exportStar(require("../WAProto"), exports);
99
56
  __exportStar(require("./Utils"), exports);
@@ -103,4 +60,5 @@ __exportStar(require("./Defaults"), exports);
103
60
  __exportStar(require("./WABinary"), exports);
104
61
  __exportStar(require("./WAM"), exports);
105
62
  __exportStar(require("./WAUSync"), exports);
106
- exports.default = socket;
63
+
64
+ exports.default = socket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontalabs/baileys",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "PontaLabs Baileys is a lightweight, modern, and customizable WhatsApp Web API library built on Baileys.",
5
5
  "keywords": [
6
6
  "facebook",