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.
- package/README.md +7 -13
- package/index.js +11 -40
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
# 🧞 SILENT-AKINATOR PRO
|
|
2
|
-
###
|
|
1
|
+
# 🧞 SILENT-AKINATOR PRO 🧞
|
|
2
|
+
### BY SILENT TECH
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
The most reliable Akinator API for developers.
|
|
5
5
|
|
|
6
6
|
## 🚀 INSTALL
|
|
7
7
|
`npm install silent-akinator-pro`
|
|
8
8
|
|
|
9
|
-
## 💻 USAGE
|
|
9
|
+
## 💻 USAGE
|
|
10
10
|
```javascript
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const { Akinator } = require('silent-akinator-pro');
|
|
12
|
+
const api = new Akinator({ region: 'en', childMode: false });
|
|
13
13
|
|
|
14
14
|
(async () => {
|
|
15
|
-
|
|
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
|
|
5
|
-
constructor(config = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
15
|
+
module.exports = { Akinator, AkinatorAnswer };
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silent-akinator-pro",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Premium Akinator API
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "Silent Tech Premium Akinator API. High-speed and professional.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"keywords": [
|
|
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
|
}
|