silent-akinator-pro 1.2.0 → 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 (2) hide show
  1. package/index.js +12 -3
  2. package/package.json +7 -2
package/index.js CHANGED
@@ -1,6 +1,15 @@
1
- const { Akinator, AkinatorAnswer } = require("@aqul/akinator-api");
1
+ const { Akinator: BaseAki, AkinatorAnswer } = require("@aqul/akinator-api");
2
2
 
3
- // 💀 SILENT TECH BRANDING
4
- console.log("🧞 SILENT TECH AKINATOR ENGINE: LOADED");
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");
12
+ }
13
+ }
5
14
 
6
15
  module.exports = { Akinator, AkinatorAnswer };
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "silent-akinator-pro",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Silent Tech Premium Akinator API. High-speed and professional.",
5
5
  "main": "index.js",
6
- "keywords": ["akinator", "silent-tech", "wa-bot", "api"],
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": {