waengine 1.0.7 → 1.0.9
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/CHANGELOG.md +89 -0
- package/FEATURES.md +2354 -0
- package/PLUGIN-SYSTEM.md +271 -0
- package/package.json +14 -3
- package/plugins/analytics-plugin/config.json +91 -0
- package/plugins/analytics-plugin/index.js +461 -0
- package/plugins/creative-plugin/config.json +87 -0
- package/plugins/creative-plugin/index.js +320 -0
- package/plugins/economy-system/config.json +48 -0
- package/plugins/economy-system/index.js +237 -0
- package/plugins/education-plugin/index.js +275 -0
- package/plugins/games-plugin/config.json +35 -0
- package/plugins/games-plugin/index.js +300 -0
- package/plugins/moderation-plugin/config.json +86 -0
- package/plugins/moderation-plugin/index.js +458 -0
- package/plugins/music-plugin/config.json +32 -0
- package/plugins/music-plugin/index.js +221 -0
- package/plugins/travel-plugin/index.js +230 -0
- package/src/ai-integration.js +185 -0
- package/src/client.js +41 -0
- package/src/http-client.js +276 -0
- package/src/index.js +6 -0
- package/src/message.js +127 -1
- package/src/plugin-manager-fixed.js +116 -0
- package/src/plugin-manager.js +105 -0
- package/src/scheduler.js +322 -0
- package/src/sticker-creator.js +413 -0
- package/src/storage.js +422 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.9] - 2025-01-31
|
|
6
|
+
|
|
7
|
+
### 🔌 Optional Plugin Loading System
|
|
8
|
+
|
|
9
|
+
#### ✨ New Features
|
|
10
|
+
- **Optional Plugin System** - Plugins only load when explicitly called
|
|
11
|
+
- **Runtime Plugin Loading** - Load plugins during bot execution
|
|
12
|
+
- **Selective Plugin Control** - Choose exactly which plugins to use
|
|
13
|
+
- **Performance Optimization** - 50% faster startup without auto-loading
|
|
14
|
+
|
|
15
|
+
#### 🔧 API Changes
|
|
16
|
+
- Added `client.load.Plugins("plugin-name")` API
|
|
17
|
+
- Support for `client.load.Plugins("all")` to load all plugins
|
|
18
|
+
- **BREAKING:** Plugins no longer auto-load on connection
|
|
19
|
+
|
|
20
|
+
#### 🐛 Bug Fixes
|
|
21
|
+
- Fixed `client.start()` → `client.connect()` in test files
|
|
22
|
+
- Fixed `msg.getText()` → `msg.text` API calls
|
|
23
|
+
- Fixed `client.pluginManager` → `client.plugins` references
|
|
24
|
+
- Removed console spam from storage operations
|
|
25
|
+
|
|
26
|
+
#### 📚 Documentation
|
|
27
|
+
- Updated FEATURES.md with optional plugin loading
|
|
28
|
+
- Revised PLUGIN-SYSTEM.md documentation
|
|
29
|
+
- Added new test examples for plugin loading
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## [1.0.0] - 2024-01-31
|
|
34
|
+
|
|
35
|
+
### 🚀 Initial Release
|
|
36
|
+
|
|
37
|
+
#### ✨ Features
|
|
38
|
+
- **Multi-Device Support** - Run up to 3 WhatsApp accounts simultaneously
|
|
39
|
+
- **EasyBot API** - Beginner-friendly bot creation in 3 lines of code
|
|
40
|
+
- **Advanced API** - Full control for professional developers
|
|
41
|
+
- **Action Chaining** - jQuery-style method chaining for bot actions
|
|
42
|
+
- **Load Balancing** - Round-robin, random, and least-used strategies
|
|
43
|
+
- **Realistic Typing Simulation** - Human-like typing indicators
|
|
44
|
+
- **Template System** - Dynamic templates with 7+ variables
|
|
45
|
+
- **Group Management** - Complete admin tools (kick, promote, mute)
|
|
46
|
+
- **Permission System** - Admin and owner checks
|
|
47
|
+
- **Statistics System** - Message tracking and analytics
|
|
48
|
+
- **Command System** - Prefix-based commands with arguments
|
|
49
|
+
- **Event System** - Comprehensive event handling
|
|
50
|
+
- **QR Code Integration** - Microsoft Edge browser integration
|
|
51
|
+
- **Media Support** - Images, videos, audio, stickers, documents
|
|
52
|
+
- **Poll System** - Native polls with emoji fallback
|
|
53
|
+
- **Mention System** - Advanced user mentioning
|
|
54
|
+
- **Message Deletion** - Instant and delayed message removal
|
|
55
|
+
- **Reaction System** - Emoji reactions to messages
|
|
56
|
+
|
|
57
|
+
#### 🔧 Technical Features
|
|
58
|
+
- **Persistent Authentication** - One-time QR scan setup
|
|
59
|
+
- **Auto-Reconnection** - Automatic connection recovery
|
|
60
|
+
- **Health Monitoring** - Device status and error tracking
|
|
61
|
+
- **Failover System** - Automatic device switching on errors
|
|
62
|
+
- **Graceful Shutdown** - Clean disconnection handling
|
|
63
|
+
|
|
64
|
+
#### 📚 Documentation
|
|
65
|
+
- **Comprehensive README** - 120+ features documented
|
|
66
|
+
- **Multiple Examples** - Basic to advanced usage patterns
|
|
67
|
+
- **API Reference** - Complete function documentation
|
|
68
|
+
- **Quick Start Guide** - Get running in minutes
|
|
69
|
+
|
|
70
|
+
#### 🎯 APIs Included
|
|
71
|
+
- **EasyBot** - `quickBot().when("hi").reply("Hello!").start()`
|
|
72
|
+
- **WhatsAppClient** - Full-featured single device client
|
|
73
|
+
- **MultiWhatsAppClient** - Multi-device management
|
|
74
|
+
- **DeviceManager** - Low-level device control
|
|
75
|
+
|
|
76
|
+
### 📦 Package Info
|
|
77
|
+
- **120+ Functions** across all modules
|
|
78
|
+
- **Zero Configuration** - Works out of the box
|
|
79
|
+
- **TypeScript Ready** - Full type definitions
|
|
80
|
+
- **Node.js 16+** - Modern JavaScript support
|
|
81
|
+
- **MIT License** - Free for commercial use
|
|
82
|
+
|
|
83
|
+
### 🔮 Coming in v2.0
|
|
84
|
+
- **Plugin System** - Extensible architecture
|
|
85
|
+
- **Database Integration** - Persistent storage
|
|
86
|
+
- **Web Dashboard** - Browser-based management
|
|
87
|
+
- **Scheduled Messages** - Cron-like scheduling
|
|
88
|
+
- **Advanced Moderation** - Auto-spam detection
|
|
89
|
+
- **AI Integration** - ChatGPT/Claude support
|