silent-akinator-pro 1.2.0 → 1.2.2
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 +17 -3
- package/package.json +7 -2
package/index.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
const { Akinator, AkinatorAnswer } = require("@aqul/akinator-api");
|
|
1
|
+
const { Akinator: BaseAki, AkinatorAnswer } = require("@aqul/akinator-api");
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
class Akinator extends BaseAki {
|
|
4
|
+
constructor(config = {}) {
|
|
5
|
+
super({
|
|
6
|
+
region: config.region || 'en',
|
|
7
|
+
childMode: config.childMode || false
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// 🚀 THE MOBILE APP SPOOF: Overwriting headers to bypass Cloudflare
|
|
11
|
+
this.client.defaults.headers.common['User-Agent'] = 'Akinator/1.2.3 (Android; 13; Scale/2.0)';
|
|
12
|
+
this.client.defaults.headers.common['Referer'] = 'https://en.akinator.com/';
|
|
13
|
+
this.client.defaults.headers.common['X-Requested-With'] = 'com.digidust.akinator.freemium';
|
|
14
|
+
this.client.defaults.headers.common['Accept'] = 'application/json';
|
|
15
|
+
|
|
16
|
+
console.log("🧞 SILENT TECH: Android Handshake Initialized");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
5
19
|
|
|
6
20
|
module.exports = { Akinator, AkinatorAnswer };
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silent-akinator-pro",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
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": {
|