baileys-dula 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +188 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baileys-dula",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "▶ ●───ᴡʜᴀᴛꜱᴀᴘᴘ ᴀᴘɪ ᴍᴏᴅɪꜰɪᴄᴀᴛɪᴏɴ ʙʏ ᴅᴛᴢ ᴅᴜʟᴀ────▶ ●",
5
5
  "keywords": [
6
6
  "whatsapp",
package/readme.md ADDED
@@ -0,0 +1,188 @@
1
+ <div align="center">
2
+
3
+ <!-- TOP BANNER IMAGE -->
4
+
5
+ <img src="https://files.catbox.moe/vvbmii.jpg" width="100%" style="border-radius: 12px;" />
6
+
7
+ <br>
8
+
9
+ <div style="background: linear-gradient(90deg, #EF4444, #DC2626, #7F1D1D); padding: 10px; border-radius: 12px; margin: 18px 0;">
10
+ <span style="font-size: 18px; font-weight: bold; color: white;">
11
+ 🔥 Ultimate WhatsApp Web API for Bots
12
+ </span>
13
+ </div>
14
+
15
+ <!-- BADGES -->
16
+
17
+ ![TypeScript](https://img.shields.io/badge/-%F0%9F%94%B7%20TypeScript-007ACC?style=for-the-badge\&logo=typescript\&logoColor=white\&labelColor=0D1117)
18
+ ![JavaScript](https://img.shields.io/badge/-%F0%9F%94%B8%20JavaScript-F7DF1E?style=for-the-badge\&logo=javascript\&logoColor=F7DF1E\&labelColor=0D1117)
19
+ ![WhatsApp](https://img.shields.io/badge/-%F0%9F%92%AC%20WhatsApp-25D366?style=for-the-badge\&logo=whatsapp\&logoColor=white\&labelColor=0D1117)
20
+ ![NPM](https://img.shields.io/badge/-%F0%9F%93%A6%20npm-CB3837?style=for-the-badge\&logo=npm\&logoColor=white\&labelColor=0D1117)
21
+
22
+ </div>
23
+
24
+ ---
25
+
26
+ ## ⚡ Baileys-Dula – Supercharged WhatsApp API
27
+
28
+ > **Baileys-Dula** is a powerful WhatsApp Web API
29
+ > built for **WhatsApp bots, automation systems, and AI messaging**.
30
+
31
+ 🚀 Fast • 🔒 Secure • 🤖 Bot-Friendly • 🔥 Red Cyber Theme
32
+
33
+ ---
34
+
35
+ ## ❓ WHY BAILEYS-DULA?
36
+
37
+ | Feature | Description |
38
+ | ---------------- | --------------------------------- |
39
+ | ⚡ Lightning Fast | Optimized socket & event handling |
40
+ | 🛡️ Secure | Updated auth & pairing logic |
41
+ | 🤖 Bot Ready | Made for WhatsApp bot devs |
42
+ | 🎛️ Interactive | Buttons, lists & rich media |
43
+ | 🔄 Active | Regular updates & fixes |
44
+
45
+ ---
46
+
47
+ ## 📌 IMPORTANT NOTE
48
+
49
+ ⚠️ This project is based on
50
+ **WhiskeySockets / Baileys**
51
+
52
+ Baileys-Dula adds:
53
+
54
+ * Custom pairing codes
55
+ * AI message icons
56
+ * Cleaner logs
57
+ * Better bot compatibility
58
+
59
+ Original repo:
60
+ 👉 [https://github.com/WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys)
61
+
62
+ ---
63
+
64
+ ## 💫 INSTALLATION
65
+
66
+ ### 📦 package.json
67
+
68
+ ```json
69
+ "dependencies": {
70
+ "baileys-dula": "*"
71
+ }
72
+ ```
73
+
74
+ ### ⚙️ npm
75
+
76
+ ```bash
77
+ npm install baileys-dula
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 🔌 IMPORT
83
+
84
+ ### ESM
85
+
86
+ ```ts
87
+ import makeWASocket from 'baileys-dula'
88
+ ```
89
+
90
+ ### CommonJS
91
+
92
+ ```js
93
+ const { default: makeWASocket } = require('baileys-dula')
94
+ ```
95
+
96
+ ---
97
+
98
+ ## 🔗 CONNECT TO WHATSAPP
99
+
100
+ ### 📱 QR Code Login
101
+
102
+ ```js
103
+ const makeWASocket = require('baileys-dula').default
104
+
105
+ const sock = makeWASocket({
106
+ browser: ['Ubuntu', 'Chrome', '20.0.1'],
107
+ printQRInTerminal: true
108
+ })
109
+ ```
110
+
111
+ ---
112
+
113
+ ### 📞 Pair With Number
114
+
115
+ ```js
116
+ const {
117
+ default: makeWASocket,
118
+ fetchLatestWAWebVersion
119
+ } = require('baileys-dula')
120
+
121
+ const sock = makeWASocket({
122
+ printQRInTerminal: false,
123
+ version: fetchLatestWAWebVersion()
124
+ })
125
+
126
+ const code = await sock.requestPairingCode("94XXXXXXXXX")
127
+ console.log("Pairing Code:", code)
128
+ ```
129
+
130
+ ---
131
+
132
+ ## 🎛️ INTERACTIVE BUTTONS
133
+
134
+ ```js
135
+ await sock.sendMessage(id, {
136
+ text: "Choose an option",
137
+ footer: "Baileys-Dula",
138
+ buttons: [
139
+ { buttonId: "menu", buttonText: { displayText: "Menu" }, type: 1 },
140
+ { buttonId: "owner", buttonText: { displayText: "Owner" }, type: 1 }
141
+ ],
142
+ headerType: 1
143
+ })
144
+ ```
145
+
146
+ ---
147
+
148
+ ## 🤖 AI MESSAGE ICON
149
+
150
+ ```js
151
+ await sock.sendMessage(id, {
152
+ text: "Hello! I'm an AI response",
153
+ ai: true
154
+ })
155
+ ```
156
+
157
+ ---
158
+
159
+ ## 🔐 CUSTOM PAIRING CODE
160
+
161
+ ```js
162
+ const code = await sock.requestPairingCode(
163
+ phoneNumber,
164
+ "DULABOT1" // 8 characters
165
+ )
166
+ ```
167
+
168
+ ---
169
+
170
+ ## 🛠️ QUICK START
171
+
172
+ 1️⃣ Install
173
+ 2️⃣ Import
174
+ 3️⃣ Connect WhatsApp
175
+ 4️⃣ Build your bot
176
+
177
+ ---
178
+
179
+ ## 🐛 ISSUES & SUPPORT
180
+
181
+ Found a bug or want a feature?
182
+ Open an issue or contribute 💙
183
+
184
+ ---
185
+
186
+ <p align="center"><i>Powered by Dula • Built for WhatsApp Bot Developers</i></p>
187
+
188
+ <img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=120&section=footer" width="100%"/>