silent-akinator-pro 1.0.1 → 1.0.6

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 +13 -19
  2. package/index.js +25 -16
  3. package/package.json +4 -12
package/README.md CHANGED
@@ -1,30 +1,24 @@
1
- # 🧞 SILENT-AKINATOR PRO 🧞
1
+ # 🧞 SILENT-AKINATOR PRO
2
2
  ### 🛡️ THE ONLY BYPASS-READY AKINATOR SDK
3
3
 
4
- Are you tired of the **"Failed to get session and signature"** error on your WhatsApp Bot?
5
- Standard libraries like `aki-api` are blocked by Cloudflare on VPS/Pterodactyl.
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.
6
5
 
7
- **Silent-Akinator Pro** uses the **Silent-Tech Proxy-Shield** to rotate through 10 private residential proxies automatically, ensuring your game never crashes.
6
+ ## 🚀 INSTALL
7
+ `npm install silent-akinator-pro`
8
8
 
9
- ## 🚀 INSTALLATION
10
- ```bash
11
- npm install silent-akinator-pro
12
- ```
13
-
14
- ## 💻 QUICK START
9
+ ## 💻 USAGE (Exact aqul-logic)
15
10
  ```javascript
16
11
  const SilentAki = require('silent-akinator-pro');
17
- const aki = new SilentAki('en');
12
+ const manager = new SilentAki({region:'en'});
18
13
 
19
14
  (async () => {
20
- const firstQuestion = await aki.start();
21
- console.log(firstQuestion.question);
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);
21
+ console.log(api.question);
22
22
  })();
23
23
  ```
24
-
25
- ## 👑 FEATURES
26
- - ✅ **Auto-Proxy Rotation:** 10 Private proxies built-in.
27
- - ✅ **VPS Optimized:** Works on Pterodactyl, Heroku, and Railway.
28
- - ✅ **Anti-Cloudflare:** Mimics real browser fingerprints.
29
-
30
24
  Built by **Silent Tech** 💀
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- const axios = require('axios');
2
- const { HttpsProxyAgent } = require('https-proxy-agent');
1
+ const { Akinator } = require("@aqul/akinator-api");
2
+ const { HttpsProxyAgent } = require("https-proxy-agent");
3
3
 
4
- class SilentAki {
5
- constructor(region = 'en') {
6
- this.region = region;
4
+ class SilentAki extends Akinator {
5
+ constructor(config = { region: 'en', childMode: false }) {
6
+ super(config);
7
7
  this.proxies = [
8
8
  "http://kfcqidym:pb146svuz0dy@31.59.20.176:6754",
9
9
  "http://kfcqidym:pb146svuz0dy@23.95.150.145:6114",
@@ -19,17 +19,26 @@ class SilentAki {
19
19
  }
20
20
 
21
21
  async start() {
22
- const proxy = this.proxies[Math.floor(Math.random() * this.proxies.length)];
23
- const agent = new HttpsProxyAgent(proxy);
24
- try {
25
- const res = await axios.get(`https://${this.region}.akinator.com/sleep`, {
26
- httpsAgent: agent,
27
- headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' }
28
- });
29
- return { status: "Success", question: "Is your character real?", progress: 0, provider: "Silent-Tech" };
30
- } catch (e) {
31
- throw new Error("Akinator Blocked the Request. Proxy Rotation Initiated...");
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
+ }
32
39
  }
40
+ if (!success) throw new Error("CRITICAL: All 10 Silent-Tech Proxies are blocked.");
33
41
  }
34
42
  }
35
- module.exports = SilentAki;
43
+
44
+ module.exports = { Akinator: SilentAki };
package/package.json CHANGED
@@ -1,21 +1,13 @@
1
1
  {
2
2
  "name": "silent-akinator-pro",
3
- "version": "1.0.1",
4
- "description": "The only Akinator API that bypasses VPS/Pterodactyl blocks using Silent-Tech Proxy-Shield.",
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.",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "keywords": [
10
- "akinator",
11
- "whatsapp-bot",
12
- "proxy",
13
- "bypass"
14
- ],
6
+ "keywords": ["akinator", "aki", "@aqul/akinator-api", "baileys", "wa-bot", "cloudflare-bypass", "silent-tech"],
15
7
  "author": "Silent Tech",
16
8
  "license": "MIT",
17
9
  "dependencies": {
18
- "axios": "^1.6.0",
10
+ "@aqul/akinator-api": "^3.0.1",
19
11
  "https-proxy-agent": "^7.0.2"
20
12
  }
21
13
  }