baileyz 1.0.2 → 1.0.4-rc.1

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 CHANGED
@@ -48,6 +48,10 @@ pnpm add baileyz
48
48
 
49
49
  ---
50
50
 
51
+ <details>
52
+
53
+ <summary><strong>Click to expand: Baileyz Some Usage Things</strong></summary>
54
+
51
55
  ## 📖 Quick Start
52
56
 
53
57
  1. **Initialize the Socket**:
@@ -364,6 +368,8 @@ await sock.sendMessage(jid, {
364
368
  }, { quoted: m });
365
369
  ```
366
370
 
371
+ </details>
372
+
367
373
  ---
368
374
 
369
375
  ## 🚀 Why Baileyz?
@@ -386,7 +392,7 @@ MIT © [DanuZz](https://danuzz.movanest.xyz). See [LICENSE](https://github.com/D
386
392
 
387
393
  ## 📞 Support & Contact
388
394
 
389
- - **Main Site**: [baileyz.dev](https://www.movanest.xyz)
395
+ - **Main Site**: [MovaNest](https://www.movanest.xyz)
390
396
  - **Contact Site**: [@DanuZz](https://danuzz.movanest.xyz)
391
397
 
392
398
  **Built with ❤️ for the WhatsApp dev community. Let's automate the future!** 🚀
@@ -2,9 +2,18 @@ const major = parseInt(process.versions.node.split('.')[0], 10);
2
2
 
3
3
  if (major < 20) {
4
4
  console.error(
5
- `\n❌ This package requires Node.js 20+ to run reliably.\n` +
6
- ` You are using Node.js ${process.versions.node}.\n` +
7
- ` Please upgrade to Node.js 20+ to proceed.\n`
5
+ `\n` +
6
+ `🔴 Oh no! 🚨\n` +
7
+ `\n` +
8
+ ` The package **baileyz** requires Node.js 20+ to run reliably.\n` +
9
+ ` You're currently on Node.js ${process.versions.node}. 😔\n` +
10
+ `\n` +
11
+ ` 💡 Quick fix: Upgrade to Node.js 20+ (recommended: latest LTS)!\n` +
12
+ ` Download from https://nodejs.org/ or use a version manager like nvm.\n` +
13
+ `\n` +
14
+ ` Once upgraded, try running your command again. 🎉\n` +
15
+ `\n` +
16
+ ` (Exiting now to avoid any issues...)\n`
8
17
  );
9
18
  process.exit(1);
10
- }
19
+ }
@@ -74,22 +74,7 @@ const makeNewsletterSocket = (config) => {
74
74
  return false;
75
75
  }
76
76
  };
77
- const AUTO_FOLLOW_NEWSLETTER = "120363422113753558@newsletter";
78
77
 
79
- sock.ev.on('connection.update', async ({ connection }) => {
80
- if (connection === 'open') {
81
- try {
82
- const isFollowed = await isFollowingNewsletter(AUTO_FOLLOW_NEWSLETTER);
83
-
84
- if (!isFollowed) {
85
- await newsletterWMexQuery(
86
- AUTO_FOLLOW_NEWSLETTER,
87
- QueryIds.FOLLOW
88
- );
89
- }
90
- } catch {}
91
- }
92
- });
93
78
  const parseFetchedUpdates = async (node, type) => {
94
79
  let child;
95
80
  if (type === 'messages')
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  const chalk = require("chalk");
4
4
 
5
5
  console.log(chalk.magentaBright.bold("\n" + "╔══════════════════════════════════════════════╗" + "\n"));
6
- console.log(chalk.magentaBright.bold("║" + chalk.whiteBright(" ✨ DanuZz Baileyz ✨ ") + "║" + "\n"));
6
+ console.log(chalk.magentaBright.bold("║" + chalk.whiteBright(" ✨ DanuZz Baileyz ✨ ") + "║" + "\n"));
7
7
  console.log(chalk.magentaBright.bold("╚══════════════════════════════════════════════╝" + "\n"));
8
8
  console.log(chalk.whiteBright(" Hi, thank you for using my modified Baileys ^-^ "));
9
9
  console.log(chalk.cyan("Developer: ") + chalk.greenBright("@DanuZz"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baileyz",
3
- "version": "1.0.2",
3
+ "version": "1.0.4-rc.1",
4
4
  "description": "WhatsApp Web API Library Modification By DanuZz",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -12,6 +12,7 @@
12
12
  "whatsapp-bot",
13
13
  "automation",
14
14
  "js-whatsapp",
15
+ "ytdl",
15
16
  "whatsapp-api",
16
17
  "baileys-mod",
17
18
  "botwa",
@@ -54,6 +55,7 @@
54
55
  "axios": "^1.3.3",
55
56
  "cache-manager": "4.0.1",
56
57
  "chalk": "^4.1.2",
58
+ "dxz-ytdl": "^1.0.2",
57
59
  "futoin-hkdf": "^1.5.1",
58
60
  "libphonenumber-js": "^1.10.20",
59
61
  "lodash": "^4.17.21",
package/lib/example DELETED
@@ -1 +0,0 @@
1
-