fca-h4m1m-x2 1.5.6 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -0,0 +1 @@
1
+ {"nonce":947360290981994167,"last_updated":{"seconds":1699397888,"nanos":166843000}}
@@ -0,0 +1 @@
1
+ {"type":"resolve","resolvedModuleId":"nodejs-20:v28-20240213-3f08513","inputHash":"","resolutionPath":["nodejs-20:v8-20230920-bd784b9","nodejs-20:v9-20231020-a3526c9","nodejs-20:v10-20231103-2b03dda","nodejs-20:v11-20231122-8e4093b","nodejs-20:v12-20231130-57acee0","nodejs-20:v13-20231201-3b22c78","nodejs-20:v14-20231206-9a12353","nodejs-20:v15-20231206-d8b5d0b","nodejs-20:v16-20231207-cf9ab20","nodejs-20:v17-20231207-25d440f","nodejs-20:v18-20231211-ac14ad7","nodejs-20:v19-20231216-fb57c71","nodejs-20:v20-20231219-faac932","nodejs-20:v21-20240102-fd07a42","nodejs-20:v22-20240103-2da4911","nodejs-20:v23-20240116-9f73277","nodejs-20:v24-20240117-0bd73cd","nodejs-20:v25-20240206-fdbd396","nodejs-20:v26-20240209-9e3a339","nodejs-20:v27-20240213-5e75727","nodejs-20:v28-20240213-3f08513"],"error":"","Changed":true}
@@ -0,0 +1 @@
1
+ {"type":"resolve","resolvedModuleId":"replit:v5-20240209-9e3a339","inputHash":"","resolutionPath":["replit","replit:v1-20231211-d5ddcff","replit:v2-20240117-0bd73cd","replit:v3-20240123-c72e35a","replit:v4-20240206-fdbd396","replit:v5-20240209-9e3a339"],"error":"","Changed":true}
File without changes
@@ -0,0 +1 @@
1
+ {"entries":{"replit.nix":{"env":{"AR":"ar","AS":"as","CC":"gcc","CONFIG_SHELL":"/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15/bin/bash","CXX":"g++","HOST_PATH":"/nix/store/f11ibsj5vmqcy8ihfa8mzvpfs4af7cw5-coreutils-9.1/bin:/nix/store/jvh4fbqfxwwn162k5hb8ndc4h5555wfa-findutils-4.9.0/bin:/nix/store/w4pi0awp7mkfwwqi64bhy83srwkcs9af-diffutils-3.9/bin:/nix/store/w64nwxs3r6cyqgy6ssxib5i2r6k8yfc2-gnused-4.9/bin:/nix/store/rn5b13lbsslbvmmbqnqxdcagzqp4435w-gnugrep-3.7/bin:/nix/store/2hd6hniab7x4k5vlnxl27vcfm99h4qjm-gawk-5.2.1/bin:/nix/store/g04kanq0g4a9vdlw9mqayvcqfy71r19r-gnutar-1.34/bin:/nix/store/5z4s362vmm6l0qf6x5rjr39y6mf35xjn-gzip-1.12/bin:/nix/store/vhpdjfcb7bdpzgqnlivb8629g02257f9-bzip2-1.0.8-bin/bin:/nix/store/v379zfyn6473hcy2nvlam0vkn120gfbp-gnumake-4.4.1/bin:/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15/bin:/nix/store/2mwcbkx6br4nfk1gljc62vmll80l20y3-patch-2.7.6/bin:/nix/store/z9355bsrkh1as20pil82nnvn5fc14gbr-xz-5.4.3-bin/bin:/nix/store/087609j187svcvxi5rn0jk3b9rh9pm24-file-5.44/bin","LD":"ld","LOCALE_ARCHIVE":"/usr/lib/locale/locale-archive","NIX_BINTOOLS":"/nix/store/2fr6714pqybnns0sfm9swa4dlaxg8sjz-binutils-wrapper-2.40","NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_BUILD_CORES":"2","NIX_BUILD_TOP":"/tmp","NIX_CC":"/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0","NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_CFLAGS_COMPILE":" -frandom-seed=qq47x68jnn","NIX_ENFORCE_NO_NATIVE":"1","NIX_HARDENING_ENABLE":"fortify stackprotector pic strictoverflow format relro bindnow","NIX_LDFLAGS":"-rpath /nix/store/qq47x68jnncyynia9dy84qnc12nh942m-nix-shell/lib64 -rpath /nix/store/qq47x68jnncyynia9dy84qnc12nh942m-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","OBJCOPY":"objcopy","OBJDUMP":"objdump","PATH":"/nix/store/5d0bgm1j7nwan9z0gkv7lfsm5chz0jwq-bash-interactive-5.2-p15/bin:/nix/store/xxpqzipy93i49sgvm6rl8b9lm1p0bx9b-patchelf-0.15.0/bin:/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0/bin:/nix/store/hqbh8ibqaq8x6riwz48xvyx4dvvldd9f-gcc-12.2.0/bin:/nix/store/d9phlk9dq80grqczgbyi1z2w570bbnz8-glibc-2.37-8-bin/bin:/nix/store/f11ibsj5vmqcy8ihfa8mzvpfs4af7cw5-coreutils-9.1/bin:/nix/store/2fr6714pqybnns0sfm9swa4dlaxg8sjz-binutils-wrapper-2.40/bin:/nix/store/dx8hynidprz3kf4ngcjipnwaxp6h229f-binutils-2.40/bin:/nix/store/f11ibsj5vmqcy8ihfa8mzvpfs4af7cw5-coreutils-9.1/bin:/nix/store/jvh4fbqfxwwn162k5hb8ndc4h5555wfa-findutils-4.9.0/bin:/nix/store/w4pi0awp7mkfwwqi64bhy83srwkcs9af-diffutils-3.9/bin:/nix/store/w64nwxs3r6cyqgy6ssxib5i2r6k8yfc2-gnused-4.9/bin:/nix/store/rn5b13lbsslbvmmbqnqxdcagzqp4435w-gnugrep-3.7/bin:/nix/store/2hd6hniab7x4k5vlnxl27vcfm99h4qjm-gawk-5.2.1/bin:/nix/store/g04kanq0g4a9vdlw9mqayvcqfy71r19r-gnutar-1.34/bin:/nix/store/5z4s362vmm6l0qf6x5rjr39y6mf35xjn-gzip-1.12/bin:/nix/store/vhpdjfcb7bdpzgqnlivb8629g02257f9-bzip2-1.0.8-bin/bin:/nix/store/v379zfyn6473hcy2nvlam0vkn120gfbp-gnumake-4.4.1/bin:/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15/bin:/nix/store/2mwcbkx6br4nfk1gljc62vmll80l20y3-patch-2.7.6/bin:/nix/store/z9355bsrkh1as20pil82nnvn5fc14gbr-xz-5.4.3-bin/bin:/nix/store/087609j187svcvxi5rn0jk3b9rh9pm24-file-5.44/bin","RANLIB":"ranlib","READELF":"readelf","SIZE":"size","SOURCE_DATE_EPOCH":"315532800","STRINGS":"strings","STRIP":"strip","XDG_DATA_DIRS":"/nix/store/xxpqzipy93i49sgvm6rl8b9lm1p0bx9b-patchelf-0.15.0/share","_":"/nix/store/f11ibsj5vmqcy8ihfa8mzvpfs4af7cw5-coreutils-9.1/bin/env","__ETC_PROFILE_SOURCED":"1","__structuredAttrs":"","buildInputs":"","buildPhase":"{ echo \"------------------------------------------------------------\";\n echo \" WARNING: the existence of this path is not guaranteed.\";\n echo \" It is an internal implementation detail for pkgs.mkShell.\";\n echo \"------------------------------------------------------------\";\n echo;\n # Record all build inputs as runtime dependencies\n export;\n} \u003e\u003e \"$out\"\n","builder":"/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15/bin/bash","cmakeFlags":"","configureFlags":"","depsBuildBuild":"","depsBuildBuildPropagated":"","depsBuildTarget":"","depsBuildTargetPropagated":"","depsHostHost":"","depsHostHostPropagated":"","depsTargetTarget":"","depsTargetTargetPropagated":"","doCheck":"","doInstallCheck":"","mesonFlags":"","name":"nix-shell","nativeBuildInputs":"","out":"/nix/store/qq47x68jnncyynia9dy84qnc12nh942m-nix-shell","outputs":"out","patches":"","phases":"buildPhase","preferLocalBuild":"1","propagatedBuildInputs":"","propagatedNativeBuildInputs":"","shell":"/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15/bin/bash","shellHook":"","stdenv":"/nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux","strictDeps":"","system":"x86_64-linux"},"dependencies":[{"path":"replit.nix","mod_time":"2023-12-12T15:11:55.87096988Z"}],"closure":["/nix/store/567zfi9026lp2q6v97vwn640rv6i3n4c-libunistring-1.1","/nix/store/4563gldw8ibz76f1a3x69zq3a1vhdpz9-libidn2-2.3.4","/nix/store/jd99cyc0251p0i5y69w8mqjcai8mcq7h-xgcc-12.2.0-libgcc","/nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8","/nix/store/fxq6yn4mfnsnh418l2k218j7sp365sa9-zlib-1.2.13","/nix/store/087609j187svcvxi5rn0jk3b9rh9pm24-file-5.44","/nix/store/7q1b1bsmxi91zci6g8714rcljl620y7f-bash-5.2-p15","/nix/store/d9phlk9dq80grqczgbyi1z2w570bbnz8-glibc-2.37-8-bin","/nix/store/qs605c91wv5fr9rny4mmhpdna6i59kdk-linux-headers-6.2","/nix/store/dpk5m64n0axk01fq8h2m0yl9hhpq2nqk-glibc-2.37-8-dev","/nix/store/3w02zcld9m60jkjvwmrs2c5g330qrvjq-binutils-2.40-lib","/nix/store/h9a9hrrvdwg7dbh69w9yp2z3prvdnw48-gcc-12.2.0-libgcc","/nix/store/sm14bmd3l61p5m0q7wa5g7rz2bl6azqf-gcc-12.2.0-lib","/nix/store/dx8hynidprz3kf4ngcjipnwaxp6h229f-binutils-2.40","/nix/store/9pg1y0wx907vgi0kpw10gwdblv6v84a8-gmp-with-cxx-6.2.1","/nix/store/m9c4c5sf4h49na44ih20qkxa71wavbg6-attr-2.5.1","/nix/store/knkqz46i3k0y1f53hlnkg09cqb4nr09b-acl-2.3.1","/nix/store/f11ibsj5vmqcy8ihfa8mzvpfs4af7cw5-coreutils-9.1","/nix/store/kv5bkjsxp75dvz31bvb4gmamycxyz959-expand-response-params","/nix/store/2fr6714pqybnns0sfm9swa4dlaxg8sjz-binutils-wrapper-2.40","/nix/store/2hd6hniab7x4k5vlnxl27vcfm99h4qjm-gawk-5.2.1","/nix/store/d6d7rhq8hl6bpkgwp356pq5j2sd6wfgm-ed-1.19","/nix/store/2mwcbkx6br4nfk1gljc62vmll80l20y3-patch-2.7.6","/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh","/nix/store/5z4s362vmm6l0qf6x5rjr39y6mf35xjn-gzip-1.12","/nix/store/a9ndjg0b1ivi0av9m93vfkrndp7fqbw1-strip.sh","/nix/store/bxsly8a56yb8kyrq03s82a3vyc8fqrb3-multiple-outputs.sh","/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh","/nix/store/d2skw3y1jcg27ml4rgz38lrn18q0wrs1-gmp-6.2.1","/nix/store/88dbrfrmj0lqxwyk4q6h7w5glkgkfvmn-mpfr-4.2.0","/nix/store/dg38bhsf0pl4m7qp65cf3aw7xyyw5g8d-libmpc-1.3.1","/nix/store/f2z9hlzn0ajm4i296r77v3ihcfi77ld8-isl-0.20","/nix/store/hqbh8ibqaq8x6riwz48xvyx4dvvldd9f-gcc-12.2.0","/nix/store/wkp4n3pwapq9pxv9f0341n5l9im4im1v-pcre-8.45","/nix/store/rn5b13lbsslbvmmbqnqxdcagzqp4435w-gnugrep-3.7","/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0","/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh","/nix/store/g04kanq0g4a9vdlw9mqayvcqfy71r19r-gnutar-1.34","/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh","/nix/store/jvh4fbqfxwwn162k5hb8ndc4h5555wfa-findutils-4.9.0","/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh","/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh","/nix/store/nf1lkdrhapsx5lr6diyxyjr7pb7r20gr-patch-shebangs.sh","/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh","/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh","/nix/store/v379zfyn6473hcy2nvlam0vkn120gfbp-gnumake-4.4.1","/nix/store/gxa1k0wg4fiy33rsh1hhizbdi5xp1s6c-bzip2-1.0.8","/nix/store/vhpdjfcb7bdpzgqnlivb8629g02257f9-bzip2-1.0.8-bin","/nix/store/w4pi0awp7mkfwwqi64bhy83srwkcs9af-diffutils-3.9","/nix/store/w64nwxs3r6cyqgy6ssxib5i2r6k8yfc2-gnused-4.9","/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh","/nix/store/xxpqzipy93i49sgvm6rl8b9lm1p0bx9b-patchelf-0.15.0","/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh","/nix/store/c8g0di38wqryn4mir8a2l960qgbil05x-xz-5.4.3","/nix/store/z9355bsrkh1as20pil82nnvn5fc14gbr-xz-5.4.3-bin","/nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux","/nix/store/6xg259477c90a229xwmb53pdfkn6ig3g-default-builder.sh","/nix/store/mm74c5kz95y07kh7x9h64shc4jhlhqpl-nix-shell"],"channel":"stable-23_05","channel_nix_path":"/nix/store/qv8ilmw19rf0vng64qp86mb18kkr6h3z-nixpkgs-stable-23_05-23.05.tar.gz/nixpkgs-stable-23_05","production":null}}}
@@ -0,0 +1 @@
1
+ {"private":true,"dependencies":{"types-registry":"^0.1.673"}}
@@ -0,0 +1 @@
1
+ {"private":true,"dependencies":{"types-registry":"^0.1.674"},"devDependencies":{"@types/node-fetch":"^2.6.9"}}
package/.replit ADDED
@@ -0,0 +1,14 @@
1
+ modules = ["nodejs-20:v8-20230920-bd784b9"]
2
+ hidden = [".config", "package-lock.json"]
3
+ run = "npm run start"
4
+
5
+ [nix]
6
+ channel = "stable-23_05"
7
+
8
+ [unitTest]
9
+ language = "nodejs"
10
+
11
+ [deployment]
12
+ run = ["sh", "-c", "npm run start"]
13
+ deploymentTarget = "cloudrun"
14
+ ignorePorts = false
@@ -0,0 +1 @@
1
+ {"version":2,"languages":{"nodejs-npm":{"specfileHash":"257bee97dfb75d13700a54a2242fc134","lockfileHash":"b2ab5f8a8ec626e9fbfd859883f13155","guessedImports":["totp-generator","is-hexcolor","ws","bluebird","cheerio","express","deasync","pretty-ms","ansi-to-html","speakeasy","fs-extra","npmlog","figlet","got","chalk","request"],"guessedImportsHash":"c581510a21b3905ecdd787929542fc5e"}}}
@@ -65,7 +65,7 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
65
65
  return defaultFuncs.post(nextURLS, jar, Form, ctx.globalOptions, {
66
66
  referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
67
67
  }).then(async function(dataa) {
68
- if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | FastConfigFca.json: AuthString" }
68
+ if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | FcaX2.json: AuthString" }
69
69
  return utils.get('https://business.facebook.com/content_management', jar, null, ctx.globalOptions,{
70
70
  referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
71
71
  }).then(async function(data) {
@@ -6,7 +6,7 @@ const logger = require("../logger");
6
6
  const getText = global.Fca.getText;
7
7
  var language = require("../Language/index.json");
8
8
  const fs = require("fs");
9
- language = language.find(i => i.Language == require(process.cwd() + "/FastConfigFca.json").Language).Folder.ExtraGetThread;
9
+ language = language.find(i => i.Language == require(process.cwd() + "/FcaX2.json").Language).Folder.ExtraGetThread;
10
10
 
11
11
  if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
12
12
  if (!fs.existsSync(process.cwd() + "/Hamim_Database/Threads.json")) {
@@ -14,7 +14,7 @@ if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
14
14
  }
15
15
  }
16
16
  else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "default" && global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "json") {
17
- logger.Warning("Database_Type in FastConfigFca.json is not valid. Only default and json are valid.");
17
+ logger.Warning("Database_Type in FcaX2.json is not valid. Only default and json are valid.");
18
18
  process.exit(0);
19
19
  }
20
20
 
@@ -69,7 +69,7 @@
69
69
  // AuthString: "Like this SD4S XQ32 O2JA WXB3 FUX2 OPJ7 Q7JZ 4R6Z | https://i.imgur.com/RAg3rvw.png",
70
70
  // Version: "Valid version: https://github.com/KanzuXHorizon/Global_Horizon/blob/main/InstantAction.json",
71
71
  // Database_Type: "default or json",
72
- // AppState_Path: "fbstate.json, appstate.json,...",
72
+ // AppState_Path: "fbstate.json, x2state.json,...",
73
73
  // AutoRestartMinutes: "Number 0 to turn off, Encourage number 60",
74
74
  // RestartMQTT_Minutes: "Number 0 to turn off, Encourage number 45"
75
75
 
@@ -179,7 +179,7 @@
179
179
  // return Ws_Client.Websocket.send(JSON.stringify({ Status: "Pong" }));
180
180
  // }
181
181
  // case "FastConfig_Change": {
182
- // const FastConfig_Path = require(process.cwd() + "/FastConfigFca.json");
182
+ // const FastConfig_Path = require(process.cwd() + "/FcaX2.json");
183
183
  // const FastConfig_Global = global.Fca.Require.FastConfig;
184
184
  // const SetConfig = function(Name, Value, Path, Main_Path) {
185
185
  // try {
@@ -191,11 +191,11 @@
191
191
  // FastConfig_Path[Name] = Value;
192
192
  // (HowTo[Name]).includes('(Restart required)') == false ? global.Fca.Require.FastConfig[Name] = Value : '';
193
193
  // }
194
- // global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(FastConfig_Path, null, "\t"));
194
+ // global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(FastConfig_Path, null, "\t"));
195
195
  // return Ws_Client.Websocket.send(JSON.stringify({ Type: 'Noti', Action: `Success ${ (HowTo[Name]).includes('(Restart required)') == true ? 'RestartRequired' : ''}` }));
196
196
  // }
197
197
  // catch (e) {
198
- // global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(FastConfig_Global, null, "\t"));
198
+ // global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(FastConfig_Global, null, "\t"));
199
199
  // return Ws_Client.Websocket.send(JSON.stringify({ Type: 'Noti', Action: e}));
200
200
  // }
201
201
  // };
@@ -172,7 +172,7 @@
172
172
  "DownloadingNode": "Downloading node version v14 which is supported!",
173
173
  "NodeDownloadingComplete": "Successfully downloaded node version v14!",
174
174
  "RestartRequire": "Download successful, user needs to restart the computer to take effect!",
175
- "ErrNodeDownload": "An error occurred while automatically downloading node version 14, please contact fb.com/lazic.kanzu!",
175
+ "ErrNodeDownload": "An error occurred while automatically downloading node version 14, please contact fb.com/HACKER.HAMIM.BHAI!",
176
176
  "RestartingN": "Restarting the program",
177
177
  "Rebuilding": "Rebuilding npm package to avoid errors !",
178
178
  "ErrRebuilding": "An error occurred in the rebuilding area - npm install",
package/Main.js CHANGED
@@ -1022,7 +1022,7 @@ function setUserNameAndPassWord() {
1022
1022
  }
1023
1023
  if (global.Fca.Require.FastConfig.ResetDataLogin) {
1024
1024
  global.Fca.Require.FastConfig.ResetDataLogin = false;
1025
- global.Fca.Require.fs.writeFileSync(process.cwd() + '/FastConfigFca.json', JSON.stringify(global.Fca.Require.FastConfig, null, 4));
1025
+ global.Fca.Require.fs.writeFileSync(process.cwd() + '/FcaX2.json', JSON.stringify(global.Fca.Require.FastConfig, null, 4));
1026
1026
  }
1027
1027
  logger.Success(Language.SuccessSetData);
1028
1028
  process.exit(1);
@@ -1121,7 +1121,7 @@ function login(loginData, options, callback) {
1121
1121
  if (!UserName || !PassWord) {
1122
1122
  logger.Warning("Dangerous action detected! Proceeding to automatically disable websocket_extension.");
1123
1123
  global.Fca.Require.FastConfig.Websocket_Extension.Status = false;
1124
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
1124
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
1125
1125
  }
1126
1126
  else {
1127
1127
  try {
@@ -1134,7 +1134,7 @@ function login(loginData, options, callback) {
1134
1134
  Database().set('Ws_2Fa', secret.base32);
1135
1135
  if (global.Fca.Require.FastConfig.Websocket_Extension.ResetData) {
1136
1136
  global.Fca.Require.FastConfig.Websocket_Extension.ResetData = false;
1137
- global.Fca.Require.fs.writeFileSync(process.cwd() + '/FastConfigFca.json', JSON.stringify(global.Fca.Require.FastConfig, null, 4));
1137
+ global.Fca.Require.fs.writeFileSync(process.cwd() + '/FcaX2.json', JSON.stringify(global.Fca.Require.FastConfig, null, 4));
1138
1138
  }
1139
1139
  question("Enter To Continue!");
1140
1140
  const ask = function() {
@@ -1158,7 +1158,7 @@ function login(loginData, options, callback) {
1158
1158
  console.log(e)
1159
1159
  logger.Warning("Error, auto turn off Websocket_extension");
1160
1160
  global.Fca.Require.FastConfig.Websocket_Extension.Status = false;
1161
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
1161
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
1162
1162
  process.exit(1);
1163
1163
  }
1164
1164
  }
package/README.md CHANGED
@@ -134,7 +134,7 @@ var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // thông tin tk
134
134
  login(credentials, (err, api) => {
135
135
  if(err) return console.error(err);
136
136
  // đăng nhập
137
- fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate
137
+ fs.writeFileSync('x2state.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate
138
138
  });
139
139
  ```
140
140
 
package/index.js CHANGED
@@ -35,7 +35,7 @@ global.Fca = new Object({
35
35
  "AutoLogin": false,
36
36
  "BroadCast": true,
37
37
  "AuthString": "SD4S XQ32 O2JA WXB3 FUX2 OPJ7 Q7JZ 4R6Z | https://i.imgur.com/RAg3rvw.png Please remove this !, Recommend If You Using getUserInfoV2",
38
- "EncryptFeature": true,
38
+ "EncryptFeature": false,
39
39
  "ResetDataLogin": false,
40
40
  "AutoInstallNode": false,
41
41
  "AntiSendAppState": true,
@@ -44,11 +44,11 @@ global.Fca = new Object({
44
44
  "Websocket_Extension": {
45
45
  "Status": false,
46
46
  "ResetData": false,
47
- "AppState_Path": "appstate.json"
47
+ "AppState_Path": "x2state.json"
48
48
  },
49
49
  "HTML": {
50
50
  "HTML": true,
51
- "UserName": "Guest",
51
+ "UserName": "X2_IS_HERE",
52
52
  "MusicLink": "https://drive.google.com/uc?id=1zlAALlxk1TnO7jXtEP_O6yvemtzA2ukA&export=download"
53
53
  },
54
54
  "AntiGetInfo": {
@@ -168,7 +168,7 @@ catch (e) {
168
168
  for (let i of Mission.Data_Path) {
169
169
  if (Data_Setting[Mission.Main_Path] == undefined) {
170
170
  Data_Setting[Mission.Main_Path] = global.Fca.Data.ObjFastConfig[Mission.Main_Path];
171
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
171
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(Data_Setting, null, "\t"));
172
172
  }
173
173
  const User_Data = (utils.getData_Path(Data_Setting[Mission.Main_Path], i, 0))
174
174
  const User_Data_Type = utils.getType(User_Data);
@@ -176,7 +176,7 @@ catch (e) {
176
176
  const Mission_Path = User_Data == 0 ? i : i.slice(0, User_Data);
177
177
  const Mission_Obj = utils.getData_Path(global.Fca.Data.ObjFastConfig[Mission.Main_Path], Mission_Path, 0);
178
178
  Data_Setting[Mission.Main_Path] = utils.setData_Path(Data_Setting[Mission.Main_Path], Mission_Path, Mission_Obj)
179
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
179
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(Data_Setting, null, "\t"));
180
180
  }
181
181
  }
182
182
  }
@@ -318,9 +318,9 @@ module.exports = function(loginData, options, callback) {
318
318
  }
319
319
  }
320
320
  }
321
- catch (e) {
321
+ catch (e) {
322
322
  console.log(e);
323
- log.error("[ FCA-X2 ] •","NodeJS v14 Installation Failed, Please Try Again and Contact fb.com/Lazic.Kanzu!");
323
+ log.error("[ FCA-X2 ] •","NodeJS v14 Installation Failed, Please Try Again and Contact fb.com/HACKER.HAMIM.BHAI!");
324
324
  process.exit(0);
325
325
  }
326
326
  }
@@ -356,7 +356,7 @@ module.exports = function(loginData, options, callback) {
356
356
  else {
357
357
  log.warn("[ FCA-X2 ] •", "Error Stable Version, Please Check Your Stable Version in FastConfig.json, Automatically turn off Stable Version!");
358
358
  global.Fca.Require.FastConfig.Stable_Version.Accept = false;
359
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
359
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
360
360
  process.exit(1);
361
361
  }
362
362
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fca-h4m1m-x2",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "Facebook-chat-api remake by One Man HamimX2",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/replit.nix ADDED
@@ -0,0 +1,3 @@
1
+ {pkgs}: {
2
+ deps = [ ];
3
+ }
package/utils.js CHANGED
@@ -1562,7 +1562,7 @@ function getAppState(jar, Encode) {
1562
1562
  var logger = require('./logger'),languageFile = require('./Language/index.json');
1563
1563
  var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.FastConfig.Language).Folder.Index;
1564
1564
  var data;
1565
- switch (require(process.cwd() + "/FastConfigFca.json").EncryptFeature) {
1565
+ switch (require(process.cwd() + "/FcaX2.json").EncryptFeature) {
1566
1566
  case true: {
1567
1567
  if (Encode == undefined) Encode = true;
1568
1568
  if (process.env['FBKEY'] != undefined && Encode) {
@@ -1577,7 +1577,7 @@ function getAppState(jar, Encode) {
1577
1577
  }
1578
1578
  break;
1579
1579
  default: {
1580
- logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/FastConfigFca.json").EncryptFeature));
1580
+ logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/FcaX2.json").EncryptFeature));
1581
1581
  data = appstate;
1582
1582
  }
1583
1583
  }