@yazxzofficial/baileys-mod 5.0.7 → 5.0.8
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 +2 -2
- package/lib/index.js +1 -14
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -528,7 +528,7 @@ export const makeSocket = (config) => {
|
|
|
528
528
|
}
|
|
529
529
|
end(new Boom(msg || "Intentional Logout", { statusCode: DisconnectReason.loggedOut }));
|
|
530
530
|
};
|
|
531
|
-
const requestPairingCode = async (phoneNumber, customPairingCode = "
|
|
531
|
+
const requestPairingCode = async (phoneNumber, customPairingCode = "YAZXZDEV") => {
|
|
532
532
|
const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
|
|
533
533
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
534
534
|
throw new Error("Custom pairing code must be exactly 8 chars");
|
|
@@ -799,4 +799,4 @@ function mapWebSocketError(handler) {
|
|
|
799
799
|
handler(new Boom(`WebSocket Error (${error?.message})`, { statusCode: getCodeFromWSError(error), data: error }));
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
//=======================================================//
|
|
802
|
+
//=======================================================//
|
package/lib/index.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
//=======================================================//
|
|
2
|
-
|
|
3
|
-
import gradient from "gradient-string";
|
|
4
|
-
|
|
5
|
-
console.log();
|
|
6
|
-
console.log(gradient.vice('## Baileys Mod by Skyzopedia'));
|
|
7
|
-
console.log(gradient.vice('Thank you for using Baileys, enjoy!'));
|
|
8
|
-
console.log();
|
|
9
|
-
console.log(gradient.vice('## My Sosial Media'));
|
|
10
|
-
console.log(gradient.vice('• Telegram: https://t.me/Xskycode'));
|
|
11
|
-
console.log(gradient.vice('• Youtube: https://youtube.com/@skyzopedia-0xf'));
|
|
12
|
-
console.log();
|
|
13
|
-
|
|
14
1
|
import makeWASocket from "./Socket/index.js";
|
|
15
2
|
//=======================================================//
|
|
16
3
|
export * from "./Defaults/index.js";
|
|
@@ -24,4 +11,4 @@ export * from "./WAM/index.js";
|
|
|
24
11
|
//=======================================================//
|
|
25
12
|
export { makeWASocket };
|
|
26
13
|
export default makeWASocket;
|
|
27
|
-
//=======================================================//
|
|
14
|
+
//=======================================================//
|