silent-akinator-pro 1.0.0 → 1.0.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/index.js +35 -0
- package/package.json +7 -2
package/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const axios = require('axios');
|
|
2
|
+
const { HttpsProxyAgent } = require('https-proxy-agent');
|
|
3
|
+
|
|
4
|
+
class SilentAki {
|
|
5
|
+
constructor(region = 'en') {
|
|
6
|
+
this.region = region;
|
|
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
|
+
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...");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
module.exports = SilentAki;
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silent-akinator-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "The only Akinator API that bypasses VPS/Pterodactyl blocks using Silent-Tech Proxy-Shield.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
|
-
"keywords": [
|
|
9
|
+
"keywords": [
|
|
10
|
+
"akinator",
|
|
11
|
+
"whatsapp-bot",
|
|
12
|
+
"proxy",
|
|
13
|
+
"bypass"
|
|
14
|
+
],
|
|
10
15
|
"author": "Silent Tech",
|
|
11
16
|
"license": "MIT",
|
|
12
17
|
"dependencies": {
|