whalibmob 5.12.4 → 5.12.7
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 +0 -14
- package/cli.js +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,20 +21,6 @@ TELEGRAM NEW WHALIBMOB CHANNEL JOIN HERE https://t.me/+jWzq-I9o0Xc1Mzc8
|
|
|
21
21
|
> [!CAUTION]
|
|
22
22
|
> Whalibmob now It needs to be rewritten because WhatsApp mobile and has changed the protocol lately and now whalibmob is in testing and some updates by Me Any pull request is accepted.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
> [!IMPORTANT]
|
|
26
|
-
> **Support whalibmob.** Keeping this library working against WhatsApp's ever-changing mobile protocol is constant, hands-on work — if it saves you time, a donation of any size is genuinely appreciated and goes straight back into maintaining it.
|
|
27
|
-
>
|
|
28
|
-
> **USDC — Ethereum network (ERC-20):**
|
|
29
|
-
> `0x8AD64F47a715eC24DeF193FBb9aC64d4E857f0f3`
|
|
30
|
-
>
|
|
31
|
-
> _Please send only USDC on the Ethereum (ERC-20) network to this address._
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
24
|
> [!IMPORTANT]
|
|
39
25
|
> This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or affiliates. "WhatsApp" and related names are registered trademarks of their respective owners. Use at your own discretion.
|
|
40
26
|
|
package/cli.js
CHANGED
|
@@ -2358,10 +2358,43 @@ function askDebugMode(cmd) {
|
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
2360
|
|
|
2361
|
+
// Donation prompt — asked at startup, right after the debug question. Purely
|
|
2362
|
+
// optional and interactive-only: a piped/non-TTY run, the offline commands, and
|
|
2363
|
+
// WA_NO_DONATE=1 all skip it in silence, so nothing about it can get in the way
|
|
2364
|
+
// of a script or a real command.
|
|
2365
|
+
function askDonation(cmd) {
|
|
2366
|
+
const OFFLINE = ['version', '--version', '-v', 'help', '--help', '-h'];
|
|
2367
|
+
if (cmd && OFFLINE.includes(cmd)) return Promise.resolve();
|
|
2368
|
+
if (!process.stdin.isTTY) return Promise.resolve();
|
|
2369
|
+
if (process.env.WA_NO_DONATE === '1') return Promise.resolve();
|
|
2370
|
+
|
|
2371
|
+
return new Promise(resolve => {
|
|
2372
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
2373
|
+
rl.question('do you want to donate USDC to support whalibmob? [y/N] ', (answer) => {
|
|
2374
|
+
rl.close();
|
|
2375
|
+
if (/^y(es)?$/i.test(String(answer).trim())) {
|
|
2376
|
+
out('');
|
|
2377
|
+
hr();
|
|
2378
|
+
out(' Kunboruto20 — USDC address (Ethereum · ERC-20)');
|
|
2379
|
+
out(' To send crypto, copy the address below:');
|
|
2380
|
+
out('');
|
|
2381
|
+
out(' 0x8AD64F47a715eC24DeF193FBb9aC64d4E857f0f3');
|
|
2382
|
+
out('');
|
|
2383
|
+
out(' Send ONLY USDC on the Ethereum (ERC-20) network to this address.');
|
|
2384
|
+
out(' Every donation keeps whalibmob maintained — thank you!');
|
|
2385
|
+
hr();
|
|
2386
|
+
out('');
|
|
2387
|
+
}
|
|
2388
|
+
resolve();
|
|
2389
|
+
});
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2361
2393
|
async function main() {
|
|
2362
2394
|
const { cmd, sub, flags, pos } = parseArgs(process.argv);
|
|
2363
2395
|
|
|
2364
2396
|
await askDebugMode(cmd);
|
|
2397
|
+
await askDonation(cmd);
|
|
2365
2398
|
|
|
2366
2399
|
_sessDir = flags.session || defaultSessionDir();
|
|
2367
2400
|
|