baileys-joss 1.0.2 → 1.0.3
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 +21 -80
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<b>🎮 Full Demo:</b>
|
|
42
|
-
<a href="https://gist.github.com/firdausmntp/07f4698578a38b63d2ff0f8990fdb2ee">📝 Complete Example Code (Gist)</a> |
|
|
43
42
|
<a href="./Example/wa-baileys-joss-complete.js">📁 Local Example File</a>
|
|
44
43
|
</p>
|
|
45
44
|
|
|
@@ -164,11 +163,6 @@
|
|
|
164
163
|
<td align="center">✅ Enhanced</td>
|
|
165
164
|
</tr>
|
|
166
165
|
<tr>
|
|
167
|
-
<td>🎤 Voice Note Helper</td>
|
|
168
|
-
<td align="center">❌</td>
|
|
169
|
-
<td align="center">✅</td>
|
|
170
|
-
</tr>
|
|
171
|
-
<tr>
|
|
172
166
|
<td>📋 Message Templates</td>
|
|
173
167
|
<td align="center">❌</td>
|
|
174
168
|
<td align="center">✅</td>
|
|
@@ -216,47 +210,47 @@
|
|
|
216
210
|
<tr>
|
|
217
211
|
<td>🎮 Mini Games</td>
|
|
218
212
|
<td align="center">❌</td>
|
|
219
|
-
<td align="center"
|
|
213
|
+
<td align="center">✅ Tested</td>
|
|
220
214
|
</tr>
|
|
221
215
|
<tr>
|
|
222
216
|
<td>🔍 Content Detector</td>
|
|
223
217
|
<td align="center">❌</td>
|
|
224
|
-
<td align="center"
|
|
218
|
+
<td align="center">✅ Tested</td>
|
|
225
219
|
</tr>
|
|
226
220
|
<tr>
|
|
227
221
|
<td>🛡️ Anti-Spam System</td>
|
|
228
222
|
<td align="center">❌</td>
|
|
229
|
-
<td align="center"
|
|
223
|
+
<td align="center">✅ Tested</td>
|
|
230
224
|
</tr>
|
|
231
225
|
<tr>
|
|
232
226
|
<td>🔗 Link Scanner</td>
|
|
233
227
|
<td align="center">❌</td>
|
|
234
|
-
<td align="center"
|
|
228
|
+
<td align="center">✅ Tested</td>
|
|
235
229
|
</tr>
|
|
236
230
|
<tr>
|
|
237
231
|
<td>📝 Activity Logger</td>
|
|
238
232
|
<td align="center">❌</td>
|
|
239
|
-
<td align="center"
|
|
233
|
+
<td align="center">✅ Tested</td>
|
|
240
234
|
</tr>
|
|
241
235
|
<tr>
|
|
242
236
|
<td>🎭 Meme Generator</td>
|
|
243
237
|
<td align="center">❌</td>
|
|
244
|
-
<td align="center"
|
|
238
|
+
<td align="center">✅ Tested</td>
|
|
245
239
|
</tr>
|
|
246
240
|
<tr>
|
|
247
241
|
<td>🍅 Pomodoro Timer</td>
|
|
248
242
|
<td align="center">❌</td>
|
|
249
|
-
<td align="center"
|
|
243
|
+
<td align="center">✅ Tested</td>
|
|
250
244
|
</tr>
|
|
251
245
|
<tr>
|
|
252
246
|
<td>💬 Quote Generator</td>
|
|
253
247
|
<td align="center">❌</td>
|
|
254
|
-
<td align="center"
|
|
248
|
+
<td align="center">✅ Tested</td>
|
|
255
249
|
</tr>
|
|
256
250
|
<tr>
|
|
257
251
|
<td>🌤️ Weather Bot</td>
|
|
258
252
|
<td align="center">❌</td>
|
|
259
|
-
<td align="center"
|
|
253
|
+
<td align="center">✅ Tested</td>
|
|
260
254
|
</tr>
|
|
261
255
|
</table>
|
|
262
256
|
|
|
@@ -938,7 +932,7 @@ await sock.groupParticipantsUpdate(group.id, [
|
|
|
938
932
|
|
|
939
933
|
---
|
|
940
934
|
|
|
941
|
-
## 🆕 Baileys-Joss v1.0.
|
|
935
|
+
## 🆕 Baileys-Joss v1.0.3 New Features
|
|
942
936
|
|
|
943
937
|
<details>
|
|
944
938
|
<summary><h3>📅 Message Scheduling</h3></summary>
|
|
@@ -1203,9 +1197,6 @@ await sock.sendMessage(statusJid, StatusHelper.gif(
|
|
|
1203
1197
|
'Animated! 🎭'
|
|
1204
1198
|
))
|
|
1205
1199
|
|
|
1206
|
-
// Post voice note status
|
|
1207
|
-
await sock.sendMessage(statusJid, StatusHelper.voiceNote(audioBuffer))
|
|
1208
|
-
|
|
1209
1200
|
// Custom text status with font
|
|
1210
1201
|
import { createTextStatus } from 'baileys-joss'
|
|
1211
1202
|
|
|
@@ -1219,51 +1210,6 @@ await sock.sendMessage(statusJid, createTextStatus({
|
|
|
1219
1210
|
|
|
1220
1211
|
</details>
|
|
1221
1212
|
|
|
1222
|
-
<details>
|
|
1223
|
-
<summary><h3>🎤 Voice Note Helper</h3></summary>
|
|
1224
|
-
|
|
1225
|
-
Rekam dan kirim voice note dengan PTT mode:
|
|
1226
|
-
|
|
1227
|
-
```typescript
|
|
1228
|
-
import {
|
|
1229
|
-
createVoiceNote,
|
|
1230
|
-
createAudioMessage,
|
|
1231
|
-
VoiceNoteHelper
|
|
1232
|
-
} from 'baileys-joss'
|
|
1233
|
-
|
|
1234
|
-
// Simple voice note from buffer
|
|
1235
|
-
const voiceNote = await VoiceNoteHelper.fromBuffer(audioBuffer, 15) // 15 seconds
|
|
1236
|
-
await sock.sendMessage(jid, voiceNote)
|
|
1237
|
-
|
|
1238
|
-
// Voice note from file
|
|
1239
|
-
const vnFromFile = await VoiceNoteHelper.fromFile('./recording.mp3')
|
|
1240
|
-
await sock.sendMessage(jid, vnFromFile)
|
|
1241
|
-
|
|
1242
|
-
// Regular audio (not PTT)
|
|
1243
|
-
const audio = await VoiceNoteHelper.audioFromBuffer(audioBuffer)
|
|
1244
|
-
await sock.sendMessage(jid, audio)
|
|
1245
|
-
|
|
1246
|
-
// Check if FFmpeg is available (for conversions)
|
|
1247
|
-
const hasFFmpeg = await VoiceNoteHelper.checkFFmpeg()
|
|
1248
|
-
|
|
1249
|
-
// Convert audio to Opus (WhatsApp format)
|
|
1250
|
-
const opusBuffer = await VoiceNoteHelper.toOpus(mp3Buffer)
|
|
1251
|
-
|
|
1252
|
-
// Get audio duration
|
|
1253
|
-
const duration = await VoiceNoteHelper.getDuration(audioBuffer)
|
|
1254
|
-
console.log(`Audio duration: ${duration} seconds`)
|
|
1255
|
-
|
|
1256
|
-
// Full control with createVoiceNote
|
|
1257
|
-
const customVN = await createVoiceNote(audioBuffer, {
|
|
1258
|
-
seconds: 30,
|
|
1259
|
-
sampleRate: 48000,
|
|
1260
|
-
channels: 1
|
|
1261
|
-
})
|
|
1262
|
-
await sock.sendMessage(jid, customVN)
|
|
1263
|
-
```
|
|
1264
|
-
|
|
1265
|
-
</details>
|
|
1266
|
-
|
|
1267
1213
|
<details>
|
|
1268
1214
|
<summary><h3>📋 Message Templates</h3></summary>
|
|
1269
1215
|
|
|
@@ -2580,11 +2526,11 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2580
2526
|
## 🔄 Changelog
|
|
2581
2527
|
|
|
2582
2528
|
<details open>
|
|
2583
|
-
<summary><b>v1.0.
|
|
2529
|
+
<summary><b>v1.0.3</b> - Latest (BIG UPDATE! 🎉)</summary>
|
|
2584
2530
|
|
|
2585
2531
|
### 🆕 New Features
|
|
2586
2532
|
|
|
2587
|
-
**🎮 Mini Games
|
|
2533
|
+
**🎮 Mini Games**
|
|
2588
2534
|
- Guess Number game with hints
|
|
2589
2535
|
- Quiz with multiple categories
|
|
2590
2536
|
- TicTacToe (vs Bot or 2 players)
|
|
@@ -2592,7 +2538,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2592
2538
|
- Dice Roll & Coin Flip
|
|
2593
2539
|
- Score tracking and leaderboards
|
|
2594
2540
|
|
|
2595
|
-
**🔍 Content Detector
|
|
2541
|
+
**🔍 Content Detector**
|
|
2596
2542
|
- URL/Link detection with extraction
|
|
2597
2543
|
- Phone number detection
|
|
2598
2544
|
- Email detection
|
|
@@ -2602,7 +2548,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2602
2548
|
- Sensitive content filtering
|
|
2603
2549
|
- Forwarded message detection
|
|
2604
2550
|
|
|
2605
|
-
**🛡️ Anti-Spam System
|
|
2551
|
+
**🛡️ Anti-Spam System**
|
|
2606
2552
|
- Rate limiting per user
|
|
2607
2553
|
- Duplicate message detection
|
|
2608
2554
|
- Flood protection
|
|
@@ -2611,7 +2557,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2611
2557
|
- Whitelist support
|
|
2612
2558
|
- Customizable rules and thresholds
|
|
2613
2559
|
|
|
2614
|
-
**🔗 Link Scanner
|
|
2560
|
+
**🔗 Link Scanner**
|
|
2615
2561
|
- URL security analysis
|
|
2616
2562
|
- Phishing detection with pattern matching
|
|
2617
2563
|
- URL shortener expansion
|
|
@@ -2620,7 +2566,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2620
2566
|
- Risk level scoring (safe/low/medium/high/critical)
|
|
2621
2567
|
- Redirect following for shortened URLs
|
|
2622
2568
|
|
|
2623
|
-
**📝 Activity Logger
|
|
2569
|
+
**📝 Activity Logger**
|
|
2624
2570
|
- Audit trail logging
|
|
2625
2571
|
- Multiple log levels (debug, info, warn, error, critical)
|
|
2626
2572
|
- Category-based logging (message, user, group, bot, security)
|
|
@@ -2629,14 +2575,14 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2629
2575
|
- Statistics and analytics
|
|
2630
2576
|
- Memory and file output options
|
|
2631
2577
|
|
|
2632
|
-
**🎭 Meme Generator
|
|
2578
|
+
**🎭 Meme Generator**
|
|
2633
2579
|
- Text-based meme templates
|
|
2634
2580
|
- Popular meme formats (Drake, Expanding Brain, Two Buttons, etc.)
|
|
2635
2581
|
- SVG/HTML output generation
|
|
2636
2582
|
- Custom template support
|
|
2637
2583
|
- Quick meme helpers
|
|
2638
2584
|
|
|
2639
|
-
**🍅 Pomodoro Timer
|
|
2585
|
+
**🍅 Pomodoro Timer**
|
|
2640
2586
|
- Productivity timer with Pomodoro technique
|
|
2641
2587
|
- Configurable work/break durations
|
|
2642
2588
|
- Session tracking and statistics
|
|
@@ -2644,7 +2590,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2644
2590
|
- Auto-start options
|
|
2645
2591
|
- Streak tracking
|
|
2646
2592
|
|
|
2647
|
-
**💬 Quote Generator
|
|
2593
|
+
**💬 Quote Generator**
|
|
2648
2594
|
- 40+ built-in quotes (English & Indonesian)
|
|
2649
2595
|
- Multiple categories (motivational, inspirational, love, life, success, wisdom, funny, islamic, philosophy)
|
|
2650
2596
|
- Quote of the day feature
|
|
@@ -2652,7 +2598,7 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2652
2598
|
- Custom quote support
|
|
2653
2599
|
- Formatted output styles
|
|
2654
2600
|
|
|
2655
|
-
**🌤️ Weather Bot
|
|
2601
|
+
**🌤️ Weather Bot**
|
|
2656
2602
|
- Real-time weather information
|
|
2657
2603
|
- OpenWeatherMap API integration
|
|
2658
2604
|
- Mock data for offline use
|
|
@@ -2684,14 +2630,9 @@ await downloadAllMedia(messages, './downloads/all-media', {
|
|
|
2684
2630
|
|
|
2685
2631
|
**📺 Status/Story Posting**
|
|
2686
2632
|
- Text status with backgrounds & fonts
|
|
2687
|
-
- Image/video
|
|
2633
|
+
- Image/video status
|
|
2688
2634
|
- Pre-defined backgrounds & styles
|
|
2689
2635
|
|
|
2690
|
-
**🎤 Voice Note Helper**
|
|
2691
|
-
- Audio conversion to Opus format
|
|
2692
|
-
- PTT mode support
|
|
2693
|
-
- Duration detection
|
|
2694
|
-
|
|
2695
2636
|
**📋 Message Templates**
|
|
2696
2637
|
- Pre-built templates (order, invoice, etc.)
|
|
2697
2638
|
- Variable substitution
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baileys-joss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"description": "WhatsApp Web API with Interactive Buttons, List Messages, Albums, AI Messages, Polls, LID/SenderPn Plotting, Mini Games, Content Detection, Anti-Spam - A feature-rich Baileys fork",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|