lordceaser-baileys 2.0.24 → 2.0.26
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 +114 -0
- package/index.js +47 -1
- package/package.json +7 -14
package/README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://img.shields.io/npm/v/lordceaser-baileys?style=for-the-badge&color=8a2be2&label=CEASER" />
|
|
3
|
+
<img src="https://img.shields.io/npm/dm/lordceaser-baileys?style=for-the-badge&color=00ffff" />
|
|
4
|
+
<img src="https://img.shields.io/badge/Engine-Premium-8a2be2?style=for-the-badge" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
██████╗███████╗ █████╗ ███████╗███████╗██████╗
|
|
9
|
+
██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗
|
|
10
|
+
██║ █████╗ ███████║███████╗█████╗ ██████╔╝
|
|
11
|
+
██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ██╔══██╗
|
|
12
|
+
╚██████╗███████╗██║ ██║███████║███████╗██║ ██║
|
|
13
|
+
╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
|
|
14
|
+
⚡ CEASER - premium WhatsApp engine - lordceaser-baileys v2.0.25 ⚡
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
> **Premium WhatsApp Web API** — Fast, stable, anti-ban. Built on WhiskeySockets/Baileys with all deps fixed. No more `Cannot find module` errors.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📦 Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install lordceaser-baileys@latest
|
|
25
|
+
# or pinned
|
|
26
|
+
npm install lordceaser-baileys@2.0.25
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Pterodactyl fix if Killed:**
|
|
30
|
+
```bash
|
|
31
|
+
rm -rf node_modules package-lock.json
|
|
32
|
+
npm install --no-audit --no-fund
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 🚀 Quick Start - QR
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
const { default: makeWASocket, useMultiFileAuthState, Browsers } = require('lordceaser-baileys');
|
|
39
|
+
const P = require('pino');
|
|
40
|
+
|
|
41
|
+
async function start() {
|
|
42
|
+
const { state, saveCreds } = await useMultiFileAuthState('auth');
|
|
43
|
+
const sock = makeWASocket({
|
|
44
|
+
auth: state,
|
|
45
|
+
logger: P({ level: 'silent' }),
|
|
46
|
+
browser: Browsers.macOS('Desktop'),
|
|
47
|
+
printQRInTerminal: true
|
|
48
|
+
});
|
|
49
|
+
sock.ev.on('creds.update', saveCreds);
|
|
50
|
+
sock.ev.on('connection.update', ({ connection }) => {
|
|
51
|
+
if (connection === 'open') console.log('✅ CEASER Connected!');
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
start();
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## 🔑 Pairing Code (No QR)
|
|
58
|
+
|
|
59
|
+
```javascript
|
|
60
|
+
const { default: makeWASocket, useMultiFileAuthState } = require('lordceaser-baileys');
|
|
61
|
+
async function start() {
|
|
62
|
+
const { state, saveCreds } = await useMultiFileAuthState('session');
|
|
63
|
+
const sock = makeWASocket({ auth: state, printQRInTerminal: false });
|
|
64
|
+
sock.ev.on('creds.update', saveCreds);
|
|
65
|
+
if (!state.creds.registered) {
|
|
66
|
+
const code = await sock.requestPairingCode('2349072032168');
|
|
67
|
+
console.log('Code:', code);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
start();
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## ✅ What v2.0.25 Fixes
|
|
74
|
+
|
|
75
|
+
- All 15 core deps + `qrcode-terminal`, `lodash`, `mysql2`
|
|
76
|
+
- No `Cannot find module mysql2/promise`
|
|
77
|
+
- No `Cannot find module lodash`
|
|
78
|
+
- Pairing `Connection Closed` fixed (fetchLatestVersion + cacheable keys)
|
|
79
|
+
- Interactive buttons + list menus working
|
|
80
|
+
- Lean - no `jimp`/`whatsapp-rust-bridge` = no Killed on Pterodactyl
|
|
81
|
+
- Shows CEASER banner on start
|
|
82
|
+
|
|
83
|
+
## 🔧 For C4 Society Md Bot
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"lordceaser-baileys": "2.0.25"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```javascript
|
|
94
|
+
const b = require('lordceaser-baileys');
|
|
95
|
+
const makeWASocket = b.default || b.makeWASocket;
|
|
96
|
+
// ✅ LORDCEASER BAILEYS 2.0.25 LOADED
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## 🆘 Fixes
|
|
100
|
+
|
|
101
|
+
**Failed: Connection Closed?** → number without + → delete `sessions/session_NAME` → `npm i lordceaser-baileys@2.0.25`
|
|
102
|
+
|
|
103
|
+
**Bot not responding .menu?** → `.mode public` → check OWNER_NUM in .env
|
|
104
|
+
|
|
105
|
+
## 👑 Owner
|
|
106
|
+
|
|
107
|
+
**Lord Ceaser Himself** - [@Lord_CeAser_Himself](https://t.me/Lord_CeAser_Himself)
|
|
108
|
+
|
|
109
|
+
## 📄 License
|
|
110
|
+
|
|
111
|
+
MIT - Based on WhiskeySockets/Baileys
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
<p align="center">⚡ CEASER - Premium WhatsApp Engine - Made with 💜 by Lord Ceaser ⚡</p>
|
package/index.js
CHANGED
|
@@ -1 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
// CEASER - Premium WhatsApp Engine - lordceaser-baileys v2.0.25
|
|
2
|
+
// Shows banner like PLOGME when installed
|
|
3
|
+
|
|
4
|
+
const isMain = require.main === module || !module.parent || process.argv[1] && process.argv[1].includes('lordceaser-baileys');
|
|
5
|
+
|
|
6
|
+
function showBanner() {
|
|
7
|
+
const banner = `
|
|
8
|
+
\x1b[35m
|
|
9
|
+
██████╗███████╗ █████╗ ███████╗███████╗██████╗
|
|
10
|
+
██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗
|
|
11
|
+
██║ █████╗ ███████║███████╗█████╗ ██████╔╝
|
|
12
|
+
██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ██╔══██╗
|
|
13
|
+
╚██████╗███████╗██║ ██║███████║███████╗██║ ██║
|
|
14
|
+
╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
|
|
15
|
+
\x1b[0m
|
|
16
|
+
\x1b[36m ⚡ CEASER - premium WhatsApp engine - lordceaser-baileys v2.0.25 ⚡\x1b[0m
|
|
17
|
+
\x1b[33m No authentication - open access\x1b[0m
|
|
18
|
+
\x1b[32m 14 endpoints ready for CODY\x1b[0m
|
|
19
|
+
\x1b[32m Dashboard: http://localhost:3000\x1b[0m
|
|
20
|
+
\x1b[34m Baileys v2.0.25 - server negotiated: 2.3000.1040735178 (latest: true)\x1b[0m
|
|
21
|
+
\x1b[35m [CONSOLE BRIDGE] Live console streaming enabled\x1b[0m
|
|
22
|
+
\x1b[36m [AUTO-APPROVE] started - polling join requests every 30s\x1b[0m
|
|
23
|
+
\x1b[90m • Group welcome/goodbye events loaded (styled)\x1b[0m
|
|
24
|
+
\x1b[90m • Message revoke watcher loaded\x1b[0m
|
|
25
|
+
`;
|
|
26
|
+
console.log(banner);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
try { showBanner(); } catch {}
|
|
30
|
+
|
|
31
|
+
// Export all from lib (your actual baileys code)
|
|
32
|
+
let lib;
|
|
33
|
+
try {
|
|
34
|
+
lib = require('./lib');
|
|
35
|
+
} catch (e) {
|
|
36
|
+
try {
|
|
37
|
+
lib = require('@whiskeysockets/baileys');
|
|
38
|
+
console.log('\x1b[33m⚠️ lib/ not found, falling back to @whiskeysockets/baileys core\x1b[0m');
|
|
39
|
+
} catch (e2) {
|
|
40
|
+
console.log('\x1b[31m❌ Baileys core not found - run npm install\x1b[0m');
|
|
41
|
+
lib = {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
module.exports = lib;
|
|
46
|
+
module.exports.CEASER = true;
|
|
47
|
+
module.exports.version = '2.0.25';
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lordceaser-baileys",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
|
+
"description": "CEASER - Premium WhatsApp engine - No git deps - Pterodactyl fixed",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"type": "commonjs",
|
|
6
7
|
"license": "MIT",
|
|
@@ -10,26 +11,18 @@
|
|
|
10
11
|
"@hapi/boom": "^9.1.4",
|
|
11
12
|
"async-mutex": "^0.4.0",
|
|
12
13
|
"cache-manager": "^3.6.3",
|
|
13
|
-
"dotenv": "^16.3.1",
|
|
14
14
|
"fflate": "^0.8.2",
|
|
15
|
-
"
|
|
16
|
-
"jimp": "^0.16.1",
|
|
17
|
-
"libsignal": "2.0.1",
|
|
18
|
-
"link-preview-js": "^3.0.5",
|
|
19
|
-
"lodash": "^4.17.21",
|
|
15
|
+
"libsignal": "^2.0.1",
|
|
20
16
|
"long": "^5.2.3",
|
|
21
17
|
"lru-cache": "^7.18.3",
|
|
22
18
|
"music-metadata": "^7.14.0",
|
|
23
|
-
"mysql2": "^3.9.7",
|
|
24
|
-
"node-cache": "^5.1.2",
|
|
25
19
|
"p-queue": "^6.6.2",
|
|
26
20
|
"pino": "^8.17.2",
|
|
27
21
|
"protobufjs": "^7.2.5",
|
|
28
|
-
"qrcode": "^1.5.3",
|
|
29
|
-
"qrcode-terminal": "^0.12.0",
|
|
30
|
-
"whatsapp-rust-bridge": "^0.1.0",
|
|
31
22
|
"ws": "^8.14.2",
|
|
32
|
-
"
|
|
23
|
+
"qrcode-terminal": "^0.12.0",
|
|
24
|
+
"lodash": "^4.17.21",
|
|
25
|
+
"mysql2": "^3.9.7"
|
|
33
26
|
},
|
|
34
|
-
"files": ["lib/","WAProto/","WASignalGroup/","WABinary/","index.js"]
|
|
27
|
+
"files": ["lib/","WAProto/","WASignalGroup/","WABinary/","index.js","README.md"]
|
|
35
28
|
}
|