whalibmob 5.12.6 → 5.12.8

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 (3) hide show
  1. package/README.md +1 -16
  2. package/cli.js +33 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  CONTACT ME ON TELEGRAM IF YOU WANT TO WORK WITH ME AND IF YOU HAVE PROBLEM WITH WHALIBMOB : @brtyu545
11
11
 
12
- TELEGRAM NEW WHALIBMOB CHANNEL JOIN HERE https://t.me/+jWzq-I9o0Xc1Mzc8
12
+ If you want News about whalibmob enter this whalibmob channel: https://t.me/+sHN4MDCyB7U5OWY0
13
13
 
14
14
 
15
15
 
@@ -21,21 +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
- >
30
- > 0x8AD64F47a715eC24DeF193FBb9aC64d4E857f0f3
31
- >
32
- > _Send only USDC on the Ethereum (ERC-20) network to this address._
33
-
34
-
35
-
36
-
37
-
38
-
39
24
  > [!IMPORTANT]
40
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.
41
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whalibmob",
3
- "version": "5.12.6",
3
+ "version": "5.12.8",
4
4
  "description": "WhatsApp library for interaction with WhatsApp Mobile API no web",
5
5
  "author": "Kunboruto20",
6
6
  "main": "index.js",