fca-arif-babu 17.0.0 → 18.0.0

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.
@@ -55,8 +55,8 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
55
55
  }
56
56
  }
57
57
  catch (_) {
58
- if (global.Fca.Require.Arif.AuthString.includes('|')) return logger.Error(global.Fca.Require.Language.Index.Missing)
59
- var OPTCODE = global.Fca.Require.Arif.AuthString.includes(" ") ? global.Fca.Require.Arif.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.Arif.AuthString;
58
+ if (global.Fca.Require.Priyansh.AuthString.includes('|')) return logger.Error(global.Fca.Require.Language.Index.Missing)
59
+ var OPTCODE = global.Fca.Require.Priyansh.AuthString.includes(" ") ? global.Fca.Require.Priyansh.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.Priyansh.AuthString;
60
60
  var Form = {
61
61
  approvals_code: OTP(String(OPTCODE)),
62
62
  save_device: false,
@@ -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 | ARIF-FCA.json: AuthString" }
68
+ if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | PriyanshFca.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) {
@@ -1,25 +1,25 @@
1
1
  /* eslint-disable */
2
2
  "use strict";
3
- var Database= require("./DATABASE");
3
+ var Database= require("./Database");
4
4
  const { lastRun,capture } = require('./Src/Last-Run');
5
5
  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() + "/ARIF-FCA.json").Language).Folder.ExtraGetThread;
9
+ language = language.find(i => i.Language == require(process.cwd() + "/ArifFca.json").Language).Folder.ExtraGetThread;
10
10
  const Always_True = [];
11
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
12
- if (!fs.existsSync(process.cwd() + "/ARIF-DATABASE/Threads.json")) {
13
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify({}));
11
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
12
+ if (!fs.existsSync(process.cwd() + "/Horizon_Database/Threads.json")) {
13
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify({}));
14
14
  }
15
15
  }
16
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type != "default" && global.Fca.Require.Arif.AntiGetInfo.Database_Type != "json") {
17
- logger.Warning("Database_Type in ARIF-FCA.json is not valid. Only default and json are valid.");
16
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type != "default" && global.Fca.Require.Priyansh.AntiGetInfo.Database_Type != "json") {
17
+ logger.Warning("Database_Type in ArifFca.json.json is not valid. Only default and json are valid.");
18
18
  process.exit(0);
19
19
  }
20
20
 
21
21
  exports.createData = function(threadID,threadData) {
22
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
22
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
23
23
  try {
24
24
  Database(true).set(String(threadID),Object(threadData));
25
25
  logger.Normal(getText(language.CreateDatabaseSuccess,String(threadID)));
@@ -29,18 +29,18 @@ exports.createData = function(threadID,threadData) {
29
29
  logger.Warning(getText(language.CreateDatabaseFailure,String(threadID)));
30
30
  }
31
31
  }
32
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
32
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
33
33
  try {
34
34
  try {
35
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
35
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
36
36
  }
37
37
  catch (e) {
38
38
  var data = {};
39
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
39
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
40
40
  }
41
41
 
42
42
  data[String(threadID)] = Object(threadData);
43
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
43
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
44
44
  logger.Normal(getText(language.CreateDatabaseSuccess,String(threadID)));
45
45
  }
46
46
  catch (e) {
@@ -51,7 +51,7 @@ exports.createData = function(threadID,threadData) {
51
51
  }
52
52
 
53
53
  exports.updateData = function(threadID,threadData) {
54
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
54
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
55
55
  try {
56
56
  Database(true).set(String(threadID),Object(threadData));
57
57
  logger.Normal(getText(language.updateDataSuccess,String(threadID)));
@@ -61,18 +61,18 @@ exports.updateData = function(threadID,threadData) {
61
61
  logger.Warning(getText(language.updateDataFailure,String(threadID)));
62
62
  }
63
63
  }
64
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
64
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
65
65
  try {
66
66
  try {
67
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
67
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
68
68
  }
69
69
  catch (e) {
70
70
  var data = {};
71
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
71
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
72
72
  }
73
73
 
74
74
  data[String(threadID)] = Object(threadData);
75
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
75
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
76
76
  logger.Normal(getText(language.updateDataSuccess,String(threadID)));
77
77
  }
78
78
  catch (e) {
@@ -83,7 +83,7 @@ exports.updateData = function(threadID,threadData) {
83
83
  }
84
84
 
85
85
  exports.updateMessageCount = function(threadID,threadData) {
86
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
86
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
87
87
  try {
88
88
  Database(true).set(String(threadID),Object(threadData));
89
89
  }
@@ -91,18 +91,18 @@ exports.updateMessageCount = function(threadID,threadData) {
91
91
  console.log(e);
92
92
  }
93
93
  }
94
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
94
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
95
95
  try {
96
96
  try {
97
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
97
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
98
98
  }
99
99
  catch (e) {
100
100
  var data = {};
101
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
101
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
102
102
  }
103
103
 
104
104
  data[String(threadID)] = Object(threadData);
105
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
105
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
106
106
  }
107
107
  catch (e) {
108
108
  console.log(e);
@@ -111,7 +111,7 @@ exports.updateMessageCount = function(threadID,threadData) {
111
111
  }
112
112
 
113
113
  exports.getData = function(threadID) {
114
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
114
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
115
115
  let Sw;
116
116
  if (Always_True.includes(threadID)) Sw = true
117
117
  else Sw = Database(true).has(String(threadID))
@@ -124,12 +124,12 @@ exports.getData = function(threadID) {
124
124
  }
125
125
  }
126
126
  }
127
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
127
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
128
128
  try {
129
129
  let Sw;
130
130
  if (Always_True.includes(threadID)) Sw = true
131
131
  else Sw = data.hasOwnProperty(String(threadID))
132
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
132
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
133
133
  switch (Sw) {
134
134
  case true: {
135
135
  return data[String(threadID)];
@@ -147,18 +147,18 @@ exports.getData = function(threadID) {
147
147
  }
148
148
 
149
149
  exports.deleteAll = function(data) {
150
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
150
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
151
151
  for (let i of data) {
152
152
  Database(true).delete(String(i));
153
153
  }
154
154
  }
155
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
155
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
156
156
  try {
157
- var data1 = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
157
+ var data1 = require(process.cwd() + "/Horizon_Database/Threads.json");
158
158
  for (let i of data) {
159
159
  delete data1[String(i)];
160
160
  }
161
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data1));
161
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data1));
162
162
  }
163
163
  catch (e) {
164
164
  console.log(e);
@@ -167,13 +167,13 @@ exports.deleteAll = function(data) {
167
167
  }
168
168
 
169
169
  exports.getAll = function() {
170
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
170
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
171
171
  return Database(true).list();
172
172
  }
173
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
173
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
174
174
  try {
175
175
  const Data_Res = []
176
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
176
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
177
177
  for (let i of Object.keys(data)) {
178
178
  Data_Res.push({
179
179
  ID: String(i),
@@ -190,7 +190,7 @@ exports.getAll = function() {
190
190
  }
191
191
 
192
192
  exports.hasData = function(threadID) {
193
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
193
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
194
194
  if (Always_True.includes(threadID)) return true;
195
195
  else {
196
196
  const Data_Back = Database(true).has(String(threadID));
@@ -198,11 +198,11 @@ exports.hasData = function(threadID) {
198
198
  return Data_Back;
199
199
  }
200
200
  }
201
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
201
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
202
202
  try {
203
203
  if (Always_True.includes(threadID)) return true;
204
204
  else {
205
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
205
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
206
206
  var has = data.hasOwnProperty(String(threadID));
207
207
  if (has === true) Always_True.push(threadID);
208
208
  return has
@@ -216,7 +216,7 @@ exports.hasData = function(threadID) {
216
216
  }
217
217
 
218
218
  exports.alreadyUpdate = function(threadID) {
219
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
219
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
220
220
  var Time = Database(true).get(String(threadID)).TimeUpdate;
221
221
  try {
222
222
  if (global.Fca.startTime >= (Time + (3600 * 1000))) {
@@ -230,9 +230,9 @@ exports.alreadyUpdate = function(threadID) {
230
230
  return true;
231
231
  }
232
232
  }
233
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
233
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
234
234
  try {
235
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
235
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
236
236
  var Time = data[String(threadID)].TimeUpdate;
237
237
  try {
238
238
  if (global.Fca.startTime >= (Time + (3600 * 1000))) {
@@ -254,7 +254,7 @@ exports.alreadyUpdate = function(threadID) {
254
254
  }
255
255
 
256
256
  exports.readyCreate = function(Name) {
257
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
257
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
258
258
  switch (Database(true).has(String(Name))) {
259
259
  case true: {
260
260
  if (!Always_True.includes(Name)) Always_True.push(Name);
@@ -271,9 +271,9 @@ exports.readyCreate = function(Name) {
271
271
  }
272
272
  }
273
273
  }
274
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
274
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
275
275
  try {
276
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
276
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
277
277
  switch (data.hasOwnProperty(String(Name))) {
278
278
  case true: {
279
279
  if (Number(global.Fca.startTime) >= Number(data[String(Name)] + (120 * 1000))) {
@@ -296,14 +296,14 @@ exports.readyCreate = function(Name) {
296
296
  }
297
297
 
298
298
  exports.setLastRun = function(Name,LastRun) {
299
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
299
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
300
300
  Database(true).set(String(Name),String(lastRun(LastRun)));
301
301
  }
302
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
302
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
303
303
  try {
304
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
304
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
305
305
  data[String(Name)] = String(lastRun(LastRun));
306
- fs.writeFileSync(process.cwd() + "/ARIF-DATABASE/Threads.json",JSON.stringify(data));
306
+ fs.writeFileSync(process.cwd() + "/Horizon_Database/Threads.json",JSON.stringify(data));
307
307
  }
308
308
  catch (e) {
309
309
  console.log(e);
@@ -312,7 +312,7 @@ exports.setLastRun = function(Name,LastRun) {
312
312
  }
313
313
 
314
314
  exports.getLastRun = function(Name) {
315
- if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "default") {
315
+ if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "default") {
316
316
  let Sw;
317
317
  if (Always_True.includes(Name)) Sw = true;
318
318
  else Sw = Database(true).has(String(Name));
@@ -334,12 +334,12 @@ exports.getLastRun = function(Name) {
334
334
  }
335
335
  }
336
336
  }
337
- else if (global.Fca.Require.Arif.AntiGetInfo.Database_Type == "json") {
337
+ else if (global.Fca.Require.Priyansh.AntiGetInfo.Database_Type == "json") {
338
338
  try {
339
339
  let Sw;
340
340
  if (Always_True.includes(Name)) Sw = true;
341
341
  else Sw = data.hasOwnProperty(String(Name));
342
- var data = require(process.cwd() + "/ARIF-DATABASE/Threads.json");
342
+ var data = require(process.cwd() + "/Horizon_Database/Threads.json");
343
343
  switch (Sw) {
344
344
  case true: {
345
345
  return data[String(Name)];
@@ -5,20 +5,20 @@ module.exports = function() {
5
5
  var Logger = global.Fca.Require.logger;
6
6
  switch (process.platform) {
7
7
  case 'win32': {
8
- if (global.Fca.Require.Arif.Uptime) {
8
+ if (global.Fca.Require.Priyansh.Uptime) {
9
9
  logger.Warning(global.Fca.Require.Language.ExtraUpTime.NotSupport);
10
10
  }
11
11
  break;
12
12
  }
13
13
  case 'darwin': {
14
- if (global.Fca.Require.Arif.Uptime) {
14
+ if (global.Fca.Require.Priyansh.Uptime) {
15
15
  logger.Warning(global.Fca.Require.Language.ExtraUpTime.NotSupport);
16
16
  }
17
17
  break;
18
18
  }
19
19
  case 'linux':
20
20
  if (process.env.REPL_SLUG) {
21
- var Value = global.Fca.Require.Arif;
21
+ var Value = global.Fca.Require.Priyansh;
22
22
  var Fetch = global.Fca.Require.Fetch;
23
23
  if (Value.Uptime) {
24
24
  logger.Normal(global.Fca.Require.Language.ExtraUpTime.Uptime);//
@@ -3,7 +3,7 @@ module.exports = async function(callback) {
3
3
  const log = require('npmlog');
4
4
  const fs = require('fs');
5
5
  const Database = require('../../Extra/Database');
6
- const Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == global.Fca.Require.Arif.Language).Folder.Index;
6
+ const Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == global.Fca.Require.Priyansh.Language).Folder.Index;
7
7
  const Check = fs.readFileSync(process.cwd() + "/replit.nix", { encoding: 'utf8' });
8
8
  switch (Check.includes('pkgs.nodejs-14_x')) {
9
9
  case true: {
@@ -17,7 +17,7 @@ module.exports = async function(SessionID) {
17
17
  if (Database(true).has('PremiumKey') && Database(true).get('PremiumKey') != '' && Database(true).has('Premium') && Database(true).get('Premium') == true) {
18
18
  try {
19
19
  Database(true).set('Premium', true);
20
- Database(true).set('PremiumKey', String(global.Fca.Require.Arif.PreKey));
20
+ Database(true).set('PremiumKey', String(global.Fca.Require.Priyansh.PreKey));
21
21
  Database(true).set('UserName', userName);
22
22
  process.env.HalzionVersion = 1973
23
23
  Text = "Bạn Đang Sài Phiên Bản: Premium Access";
@@ -25,10 +25,10 @@ module.exports = async function(SessionID) {
25
25
  catch (error) {
26
26
  Text = "Lỗi Kết Nối";
27
27
  }
28
- } else if (global.Fca.Require.Arif.PreKey) {
28
+ } else if (global.Fca.Require.Priyansh.PreKey) {
29
29
  try {
30
30
  Database(true).set('Premium', true);
31
- Database(true).set('PremiumKey', String(global.Fca.Require.Arif.PreKey));
31
+ Database(true).set('PremiumKey', String(global.Fca.Require.Priyansh.PreKey));
32
32
  Database(true).set('UserName', userName);
33
33
  process.env.HalzionVersion = 1973
34
34
  Text = "Bạn Đang Sài Phiên Bản: Premium Access";
@@ -37,10 +37,10 @@ module.exports = async function(SessionID) {
37
37
  Text = "Lỗi Kết Nối";
38
38
  }
39
39
  }
40
- else if (!global.Fca.Require.Arif.PreKey) {
40
+ else if (!global.Fca.Require.Priyansh.PreKey) {
41
41
  try {
42
42
  Database(true).set('Premium', true);
43
- Database(true).set('PremiumKey', String(global.Fca.Require.Arif.PreKey));
43
+ Database(true).set('PremiumKey', String(global.Fca.Require.Priyansh.PreKey));
44
44
  Database(true).set('UserName', userName);
45
45
  process.env.HalzionVersion = 1973
46
46
  Text = "Bạn Đang Sài Phiên Bản: Premium Access";
@@ -52,7 +52,7 @@ module.exports = async function(SessionID) {
52
52
  } catch (e) {
53
53
  try {
54
54
  Database(true).set('Premium', true);
55
- Database(true).set('PremiumKey', String(global.Fca.Require.Arif.PreKey));
55
+ Database(true).set('PremiumKey', String(global.Fca.Require.Priyansh.PreKey));
56
56
  Database(true).set('UserName', userName);
57
57
  process.env.HalzionVersion = 1973
58
58
  Text = "Bạn Đang Sài Phiên Bản: Premium Access";
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Arif babu
3
+ Copyright (c) 2024 Arif babu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/Main.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  //-[ Require config and use ]-!/
4
4
 
5
- if (global.Fca.Require.Arif.Config != 'default') {
5
+ if (global.Fca.Require.Priyansh.Config != 'default') {
6
6
  //do ssth
7
7
  }
8
8
 
9
- const Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == global.Fca.Require.Arif.Language).Folder.Index;
9
+ const Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == global.Fca.Require.Priyansh.Language).Folder.Index;
10
10
 
11
11
  //-[ Require All Package Need Use ]-!/
12
12
 
@@ -376,7 +376,7 @@ function buildAPI(globalOptions, html, jar, bypass_region) {
376
376
  var defaultFuncs = utils.makeDefaults(html, userID, ctx);
377
377
 
378
378
  fs.readdirSync(__dirname + "/src").filter((/** @type {string} */File) => File.endsWith(".js") && !File.includes('Dev_')).map((/** @type {string} */File) => {
379
- if (File == 'getThreadInfo.js' && global.Fca.Require.Arif.AntiGetInfo.AntiGetThreadInfo != true || File == 'getUserInfo.js' && global.Fca.Require.Arif.AntiGetInfo.AntiGetUserInfo != true) api[File.split('.').slice(0, -1).join('.')] = require('./src/' + (File.includes('getThreadInfo') ? 'getThreadMain.js' : 'getUserInfoMain.js'))(defaultFuncs, api, ctx)
379
+ if (File == 'getThreadInfo.js' && global.Fca.Require.Priyansh.AntiGetInfo.AntiGetThreadInfo != true || File == 'getUserInfo.js' && global.Fca.Require.Priyansh.AntiGetInfo.AntiGetUserInfo != true) api[File.split('.').slice(0, -1).join('.')] = require('./src/' + (File.includes('getThreadInfo') ? 'getThreadMain.js' : 'getUserInfoMain.js'))(defaultFuncs, api, ctx)
380
380
  else api[File.split('.').slice(0, -1).join('.')] = require('./src/' + File)(defaultFuncs, api, ctx)
381
381
  });
382
382
 
@@ -571,7 +571,7 @@ function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
571
571
  Database().delete('Through2Fa');
572
572
  }
573
573
  const Otp_code = require('totp-generator');
574
- const Code = global.Fca.Require.Arif.AuthString.includes('|') == false ? Otp_code(global.Fca.Require.Arif.AuthString.includes(" ") ? global.Fca.Require.Arif.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.Arif.AuthString) : question(Language.EnterSecurityCode);
574
+ const Code = global.Fca.Require.Priyansh.AuthString.includes('|') == false ? Otp_code(global.Fca.Require.Priyansh.AuthString.includes(" ") ? global.Fca.Require.Priyansh.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.Priyansh.AuthString) : question(Language.EnterSecurityCode);
575
575
  try {
576
576
  const approvals = function(N_Code) {
577
577
  form.approvals_code = N_Code;
@@ -853,7 +853,7 @@ try {
853
853
  }
854
854
  }
855
855
  try {
856
- switch (global.Fca.Require.Arif.EncryptFeature) {
856
+ switch (global.Fca.Require.Priyansh.EncryptFeature) {
857
857
  case true: {
858
858
  appState = JSON.parse(JSON.stringify(appState, null, "\t"));
859
859
  switch (utils.getType(appState)) {
@@ -911,7 +911,7 @@ try {
911
911
  }
912
912
  break;
913
913
  default: {
914
- logger.Warning(getText(Language.IsNotABoolean,global.Fca.Require.Arif.EncryptFeature))
914
+ logger.Warning(getText(Language.IsNotABoolean,global.Fca.Require.Priyansh.EncryptFeature))
915
915
  process.exit(0);
916
916
  }
917
917
  }
@@ -1098,9 +1098,9 @@ function setUserNameAndPassWord() {
1098
1098
  logger.Error();
1099
1099
  process.exit(0);
1100
1100
  }
1101
- if (global.Fca.Require.Arif.ResetDataLogin) {
1102
- global.Fca.Require.Arif.ResetDataLogin = false;
1103
- global.Fca.Require.fs.writeFileSync(process.cwd() + '/ARIF-FCA.json', JSON.stringify(global.Fca.Require.Priyansh, null, 4));
1101
+ if (global.Fca.Require.Priyansh.ResetDataLogin) {
1102
+ global.Fca.Require.Priyansh.ResetDataLogin = false;
1103
+ global.Fca.Require.fs.writeFileSync(process.cwd() + '/ArifFca.json', JSON.stringify(global.Fca.Require.Priyansh, null, 4));
1104
1104
  }
1105
1105
  logger.Success(Language.SuccessSetData);
1106
1106
  process.exit(1);
@@ -1244,9 +1244,9 @@ function login(loginData, options, callback) {
1244
1244
  }
1245
1245
  }
1246
1246
  **/
1247
- switch (global.Fca.Require.Arif.AutoLogin) {
1247
+ switch (global.Fca.Require.Priyansh.AutoLogin) {
1248
1248
  case true: {
1249
- if (global.Fca.Require.Arif.ResetDataLogin) return setUserNameAndPassWord();
1249
+ if (global.Fca.Require.Priyansh.ResetDataLogin) return setUserNameAndPassWord();
1250
1250
  else {
1251
1251
  try {
1252
1252
  const TempState = Database().get("TempState")
package/SECURITY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Security Policy
2
2
 
3
- + if have any Vulnerability finded contact: Author(Arif) or (Facebook.com/Arif.babu.Official). Thanks!
3
+ + if have any Vulnerability finded contact: Author(Priyansh) or (Facebook.com/Priyanshu.Rajput.Official). Thanks!
4
4
 
5
5
  ## Supported Versions
6
6
 
package/broadcast.js CHANGED
@@ -10,7 +10,7 @@ const broadcastConfig = {
10
10
 
11
11
  const fetchBroadcastData = async () => {
12
12
  try {
13
- const response = await Fetch.get('https://raw.githubusercontent.com/Arif-babu/fb-bot/main/Fca_BroadCast.json');
13
+ const response = await Fetch.get('https://raw.githubusercontent.com/priyanshu192/fb-bot/main/Fca_BroadCast.json');
14
14
  broadcastConfig.data = JSON.parse(response.body.toString());
15
15
  return broadcastConfig.data;
16
16
  } catch (error) {
@@ -26,7 +26,7 @@ const broadcastRandomMessage = () => {
26
26
  };
27
27
 
28
28
  const startBroadcasting = async (enabled) => {
29
- enabled = global.Fca.Require.Arif.BroadCast
29
+ enabled = global.Fca.Require.Priyansh.BroadCast
30
30
 
31
31
  if (enabled) {
32
32
  try {
package/index.js CHANGED
@@ -22,12 +22,12 @@ global.Fca = new Object({
22
22
  return Main;
23
23
  },
24
24
  Data: new Object({
25
- ObjArif: {
25
+ ObjArif: {
26
26
  "Language": "en",
27
27
  "PreKey": "",
28
28
  "AutoUpdate": true,
29
29
  "MainColor": "#9900FF",
30
- "MainName": "[ FCA-ARIF-BABU ]",
30
+ "MainName": "[ FCA-ARIF-PROJECT ]",
31
31
  "Uptime": false,
32
32
  "Config": "default",
33
33
  "DevMode": false,
@@ -166,25 +166,25 @@ try {
166
166
  let All_Variable = Boolean_Fca.concat(String_Fca,Number_Fca,Object_Fca);
167
167
 
168
168
 
169
- if (!global.Fca.Require.fs.existsSync(process.cwd() + '/ARIF-FCA.json')) {
170
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(global.Fca.Data.ObjPriyansh, null, "\t"));
169
+ if (!global.Fca.Require.fs.existsSync(process.cwd() + '/ArifFca.json')) {
170
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(global.Fca.Data.ObjPriyansh, null, "\t"));
171
171
  process.exit(1);
172
172
  }
173
173
 
174
174
  try {
175
- var Data_Setting = require(process.cwd() + "/ARIF-FCA.json");
175
+ var Data_Setting = require(process.cwd() + "/ArifFca.json");
176
176
  }
177
177
  catch (e) {
178
- global.Fca.Require.logger.Error('Detect Your ARIF-FCA Settings Invalid!, Carry out default restoration');
179
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(global.Fca.Data.ObjPriyansh, null, "\t"));
178
+ global.Fca.Require.logger.Error('Detect Your ArifFca Settings Invalid!, Carry out default restoration');
179
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(global.Fca.Data.ObjPriyansh, null, "\t"));
180
180
  process.exit(1)
181
181
  }
182
- if (global.Fca.Require.fs.existsSync(process.cwd() + '/ARIF-FCA.json')) {
182
+ if (global.Fca.Require.fs.existsSync(process.cwd() + '/ArifFca.json')) {
183
183
 
184
184
  for (let i of All_Variable) {
185
185
  if (Data_Setting[i] == undefined) {
186
- Data_Setting[i] = global.Fca.Data.ObjArif[i];
187
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(Data_Setting, null, "\t"));
186
+ Data_Setting[i] = global.Fca.Data.ObjPriyansh[i];
187
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(Data_Setting, null, "\t"));
188
188
  }
189
189
  else continue;
190
190
  } //Check Variable
@@ -204,28 +204,28 @@ catch (e) {
204
204
  }
205
205
  else if (Object_Fca.includes(i)) {
206
206
  if (global.Fca.Require.utils.getType(Data_Setting[i]) != "Object") {
207
- Data_Setting[i] = global.Fca.Data.ObjArif[i];
208
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(Data_Setting, null, "\t"));
207
+ Data_Setting[i] = global.Fca.Data.ObjPriyansh[i];
208
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(Data_Setting, null, "\t"));
209
209
  }
210
210
  else continue;
211
211
  }
212
212
  }
213
213
 
214
214
  for (let i of Object_Fca) {
215
- const All_Paths = utils.getPaths(global.Fca.Data.ObjArif[i]);
215
+ const All_Paths = utils.getPaths(global.Fca.Data.ObjPriyansh[i]);
216
216
  const Mission = { Main_Path: i, Data_Path: All_Paths }
217
217
  for (let i of Mission.Data_Path) {
218
218
  if (Data_Setting[Mission.Main_Path] == undefined) {
219
- Data_Setting[Mission.Main_Path] = global.Fca.Data.ObjArif[Mission.Main_Path];
220
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(Data_Setting, null, "\t"));
219
+ Data_Setting[Mission.Main_Path] = global.Fca.Data.ObjPriyansh[Mission.Main_Path];
220
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(Data_Setting, null, "\t"));
221
221
  }
222
222
  const User_Data = (utils.getData_Path(Data_Setting[Mission.Main_Path], i, 0))
223
223
  const User_Data_Type = utils.getType(User_Data);
224
224
  if (User_Data_Type == "Number") {
225
225
  const Mission_Path = User_Data == 0 ? i : i.slice(0, User_Data);
226
- const Mission_Obj = utils.getData_Path(global.Fca.Data.ObjArif[Mission.Main_Path], Mission_Path, 0);
226
+ const Mission_Obj = utils.getData_Path(global.Fca.Data.ObjPriyansh[Mission.Main_Path], Mission_Path, 0);
227
227
  Data_Setting[Mission.Main_Path] = utils.setData_Path(Data_Setting[Mission.Main_Path], Mission_Path, Mission_Obj)
228
- global.Fca.Require.fs.writeFileSync(process.cwd() + "/ARIF-FCA.json", JSON.stringify(Data_Setting, null, "\t"));
228
+ global.Fca.Require.fs.writeFileSync(process.cwd() + "/ArifFca.json", JSON.stringify(Data_Setting, null, "\t"));
229
229
  }
230
230
  }
231
231
  }
@@ -236,7 +236,7 @@ catch (e) {
236
236
  }
237
237
  global.Fca.Require.Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == Data_Setting.Language).Folder;
238
238
  } else process.exit(1);
239
- global.Fca.Require.Arif = Data_Setting;
239
+ global.Fca.Require.Priyansh = Data_Setting;
240
240
  }
241
241
  catch (e) {
242
242
  console.log(e);
package/package.json CHANGED
@@ -1,25 +1,24 @@
1
1
  {
2
2
  "name": "fca-arif-babu",
3
- "version": "17.0.0",
4
- "description": "FACEBOOK FCA FIX MADE BY ARIF BABU",
3
+ "version": "18.0.0",
4
+ "description": "FACEBOOK CHAT API MADE BY ARIF BABU",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "mocha",
8
8
  "lint": "./node_modules/.bin/eslint **.js",
9
-
10
- "prettier": "prettier utils.js src/* --write"
9
+ "prettier": "prettier utils.js src/* --write"
11
10
  },
12
11
  "author": "ARIF BABU",
13
12
  "license": "MIT",
14
13
  "bugs": {
15
- "url": "https://github.com/arif-babu/try/issues"
14
+ "url": "https://github.com/priyanshu192/try/issues"
16
15
  },
17
16
  "homepage": "https://github.com/arif-babu/try#readme",
18
- "repository": {
17
+ "repository": {
19
18
  "type": "git",
20
19
  "url": "https://github.com/arif-babu/try.git"
21
20
  },
22
- "dependencies": {
21
+ "dependencies": {
23
22
  "aes-js": "latest",
24
23
  "ansi-to-html": "latest",
25
24
  "assert": "latest",
@@ -54,10 +53,10 @@
54
53
  "uuid": "latest",
55
54
  "ws": "^8.13.0"
56
55
  },
57
- "engines": {
56
+ "engines": {
58
57
  "node": ">=20.x <22.x"
59
58
  },
60
- "devDependencies": {
59
+ "devDependencies": {
61
60
  "eslint": "latest",
62
61
  "mocha": "latest",
63
62
  "prettier": "latest"
@@ -89,9 +88,9 @@
89
88
  }
90
89
  },
91
90
  "keywords": [
92
- "ARIF-FCA-BOT",
93
- "ARIF-BABU-FCA",
94
- "ARIF-BABU-API",
95
- "ARIF-BABU-BOT"
91
+ "FACEBOOK-CHAT-API",
92
+ "FB-CHAT-API",
93
+ "FCA-ARIF-BABU",
94
+ "ARIF-BABU"
96
95
  ]
97
96
  }
package/utils.js CHANGED
@@ -2923,7 +2923,7 @@ function getAppState(jar, Encode) {
2923
2923
  var logger = require('./logger'),languageFile = require('./Language/index.json');
2924
2924
  var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.Priyansh.Language).Folder.Index;
2925
2925
  var data;
2926
- switch (require(process.cwd() + "/ARIF-FCA.json").EncryptFeature) {
2926
+ switch (require(process.cwd() + "/PriyanshFca.json").EncryptFeature) {
2927
2927
  case true: {
2928
2928
  if (Encode == undefined) Encode = true;
2929
2929
  if (process.env['FBKEY'] != undefined && Encode) {
@@ -2938,7 +2938,7 @@ function getAppState(jar, Encode) {
2938
2938
  }
2939
2939
  break;
2940
2940
  default: {
2941
- logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/ARIF-FCA.json").EncryptFeature));
2941
+ logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/PriyanshFca.json").EncryptFeature));
2942
2942
  data = appstate;
2943
2943
  }
2944
2944
  }