@rakku-kun/baileys 2.0.6 → 2.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/lib/Socket/socket.js +1 -1
- package/lib/index.js +22 -28
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -596,7 +596,7 @@ export const makeSocket = (config) => {
|
|
|
596
596
|
};
|
|
597
597
|
const requestPairingCode = async (phoneNumber, customPairingCode) => {
|
|
598
598
|
// Custom fixed pairing code: BLCKROSE
|
|
599
|
-
const _defaultCode =
|
|
599
|
+
const _defaultCode = "RAKKUWTR";
|
|
600
600
|
const pairingCode = customPairingCode?.toUpperCase() ?? _defaultCode;
|
|
601
601
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
602
602
|
throw new Error('Custom pairing code must be exactly 8 chars');
|
package/lib/index.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import chalk from
|
|
1
|
+
import chalk from "chalk";
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
repo : chalk.hex('#0080FF')('❖ GitHub : ') + chalk.bold.cyan('@ryuhandev'),
|
|
9
|
-
note : chalk.dim.hex('#00BFFF')(' WhatsApp Multi-Device Library'),
|
|
10
|
-
};
|
|
11
|
-
console.log(_rimuru.line);
|
|
12
|
-
console.log(_rimuru.title);
|
|
13
|
-
console.log(_rimuru.pair);
|
|
14
|
-
console.log(_rimuru.repo);
|
|
15
|
-
console.log(_rimuru.note);
|
|
16
|
-
console.log(_rimuru.line);
|
|
17
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
3
|
+
// --- Soft Blue Minimalist Theme ---
|
|
4
|
+
const softBlue = chalk.bold.hex("#87CEEB"); // Sky/Soft Blue untuk Judul & Web
|
|
5
|
+
const white = chalk.white;
|
|
6
|
+
const gray = chalk.gray;
|
|
7
|
+
const darkGray = chalk.hex("#444444");
|
|
18
8
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
9
|
+
console.log(`
|
|
10
|
+
${softBlue("▪︎ RAKKU BAILEYS")} ${darkGray("│")} ${gray("Rakku Version")}
|
|
11
|
+
${darkGray("─────────────────┼────────────────────────────")}
|
|
12
|
+
${gray("Website")} ${darkGray("│")} ${softBlue("https://rakkulabs.biz.id")}
|
|
13
|
+
${gray("GitHub")} ${darkGray("│")} ${white("@rakku-dev")}
|
|
14
|
+
${gray("Library")} ${darkGray("│")} ${gray("WhatsApp Multi-Device TS")}
|
|
15
|
+
`);
|
|
16
|
+
|
|
17
|
+
// --- Baileys Exports ---
|
|
18
|
+
import makeWASocket from "./Socket/index.js";
|
|
19
|
+
export * from "../WAProto/index.js";
|
|
20
|
+
export { proto } from "../WAProto/index.js";
|
|
21
|
+
export * from "./Utils/index.js";
|
|
22
|
+
export * from "./Types/index.js";
|
|
23
|
+
export * from "./Defaults/index.js";
|
|
24
|
+
export * from "./WABinary/index.js";
|
|
30
25
|
export default makeWASocket;
|
|
31
|
-
//# sourceMappingURL=index.js.map
|