silent-akinator-pro 1.0.6 → 1.2.1

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 +7 -13
  2. package/index.js +11 -40
  3. package/package.json +9 -5
package/README.md CHANGED
@@ -1,24 +1,18 @@
1
- # 🧞 SILENT-AKINATOR PRO
2
- ### 🛡️ THE ONLY BYPASS-READY AKINATOR SDK
1
+ # 🧞 SILENT-AKINATOR PRO 🧞
2
+ ### BY SILENT TECH
3
3
 
4
- Standard libraries like `aki-api` are blocked by Cloudflare on VPS/Pterodactyl. This package wraps the core logic with a **Proxy-Shield** that rotates through private residential IPs automatically.
4
+ The most reliable Akinator API for developers.
5
5
 
6
6
  ## 🚀 INSTALL
7
7
  `npm install silent-akinator-pro`
8
8
 
9
- ## 💻 USAGE (Exact aqul-logic)
9
+ ## 💻 USAGE
10
10
  ```javascript
11
- const SilentAki = require('silent-akinator-pro');
12
- const manager = new SilentAki({region:'en'});
11
+ const { Akinator } = require('silent-akinator-pro');
12
+ const api = new Akinator({ region: 'en', childMode: false });
13
13
 
14
14
  (async () => {
15
- // This will try 10 proxies automatically until it connects
16
- const api = await manager.start();
17
- console.log(api.question);
18
-
19
- // Answer using 0-4
20
- await api.answer(0);
15
+ await api.start();
21
16
  console.log(api.question);
22
17
  })();
23
18
  ```
24
- Built by **Silent Tech** 💀
package/index.js CHANGED
@@ -1,44 +1,15 @@
1
- const { Akinator } = require("@aqul/akinator-api");
2
- const { HttpsProxyAgent } = require("https-proxy-agent");
1
+ const { Akinator: BaseAki, AkinatorAnswer } = require("@aqul/akinator-api");
3
2
 
4
- class SilentAki extends Akinator {
5
- constructor(config = { region: 'en', childMode: false }) {
6
- super(config);
7
- this.proxies = [
8
- "http://kfcqidym:pb146svuz0dy@31.59.20.176:6754",
9
- "http://kfcqidym:pb146svuz0dy@23.95.150.145:6114",
10
- "http://kfcqidym:pb146svuz0dy@198.23.239.134:6540",
11
- "http://kfcqidym:pb146svuz0dy@45.38.107.97:6014",
12
- "http://kfcqidym:pb146svuz0dy@107.172.163.27:6543",
13
- "http://kfcqidym:pb146svuz0dy@198.105.121.200:6462",
14
- "http://kfcqidym:pb146svuz0dy@64.137.96.74:6641",
15
- "http://kfcqidym:pb146svuz0dy@216.10.27.159:6837",
16
- "http://kfcqidym:pb146svuz0dy@142.111.67.146:5611",
17
- "http://kfcqidym:pb146svuz0dy@191.96.254.138:6185"
18
- ];
19
- }
20
-
21
- async start() {
22
- let success = false;
23
- let shuffled = this.proxies.sort(() => 0.5 - Math.random());
24
-
25
- for (let proxy of shuffled) {
26
- try {
27
- // Inject Proxy into the base library's Axios client
28
- const agent = new HttpsProxyAgent(proxy);
29
- this.client.defaults.httpsAgent = agent;
30
- this.client.defaults.proxy = false;
31
-
32
- await super.start();
33
- success = true;
34
- console.log("🛡️ Silent-Tech Shield: Bypass Successful via " + proxy.split('@')[1]);
35
- break;
36
- } catch (e) {
37
- continue;
38
- }
39
- }
40
- if (!success) throw new Error("CRITICAL: All 10 Silent-Tech Proxies are blocked.");
3
+ class Akinator extends BaseAki {
4
+ constructor(config = {}) {
5
+ // 🚀 THE FIX: Force default values if the user leaves them empty
6
+ const safeConfig = {
7
+ region: config.region || 'en',
8
+ childMode: config.childMode || false
9
+ };
10
+ super(safeConfig);
11
+ console.log("🧞 SILENT TECH AKINATOR ENGINE: LOADED");
41
12
  }
42
13
  }
43
14
 
44
- module.exports = { Akinator: SilentAki };
15
+ module.exports = { Akinator, AkinatorAnswer };
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "silent-akinator-pro",
3
- "version": "1.0.6",
4
- "description": "Premium Akinator API with built-in Proxy-Shield and Silent Tech branding. Fixes 'Failed to get session and signature' on VPS/Pterodactyl.",
3
+ "version": "1.2.1",
4
+ "description": "Silent Tech Premium Akinator API. High-speed and professional.",
5
5
  "main": "index.js",
6
- "keywords": ["akinator", "aki", "@aqul/akinator-api", "baileys", "wa-bot", "cloudflare-bypass", "silent-tech"],
6
+ "keywords": [
7
+ "akinator",
8
+ "silent-tech",
9
+ "wa-bot",
10
+ "api"
11
+ ],
7
12
  "author": "Silent Tech",
8
13
  "license": "MIT",
9
14
  "dependencies": {
10
- "@aqul/akinator-api": "^3.0.1",
11
- "https-proxy-agent": "^7.0.2"
15
+ "@aqul/akinator-api": "^3.0.1"
12
16
  }
13
17
  }