fca-smart-shankar 1.5.6 → 10.9.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.
@@ -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.FastConfig.Uptime) {
8
+ if (global.Fca.Require.ShankarConfig.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.FastConfig.Uptime) {
14
+ if (global.Fca.Require.ShankarConfig.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.FastConfig;
21
+ var Value = global.Fca.Require.ShankarConfig;
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.FastConfig.Language).Folder.Index;
6
+ const Language = global.Fca.Require.languageFile.find((/** @type {{ Language: string; }} */i) => i.Language == global.Fca.Require.ShankarConfig.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: {
@@ -11,10 +11,10 @@ module.exports = async function(callback) {
11
11
  return;
12
12
  }
13
13
  case false: {
14
- log.warn("[ FCA-HZI ] •",Language.EVMChange);
15
- const { body } = await got('https://raw.githubusercontent.com/KanzuXHorizon/Global_Horizon/main/repl.nix');
14
+ log.warn("[ FCA-SHANKAR ] •",Language.EVMChange);
15
+ const { body } = await got('https://raw.githubusercontent.com/SHANKAR-PROJECT/Global_Shankar/main/repl.nix');
16
16
  fs.writeFileSync(process.cwd() + "/replit.nix", body, { encoding: 'utf8' });
17
- log.info("[ FCA-HZI ] •",Language.EVMChangeSuccess);
17
+ log.info("[ FCA-SHANKAR ] •",Language.EVMChangeSuccess);
18
18
  await new Promise(resolve => setTimeout(resolve, 3000));
19
19
  Database(true).set("NeedRebuild", true);
20
20
  process.exit(1);
@@ -17,48 +17,48 @@ 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.FastConfig.PreKey));
20
+ Database(true).set('PremiumKey', String(global.Fca.Require.ShankarConfig.PreKey));
21
21
  Database(true).set('UserName', userName);
22
22
  process.env.HalzionVersion = 1973
23
- Text = "Bạn Đang Sài Phiên Bản: Premium Access";
23
+ Text = "You Are Using the Version: Premium Access";
24
24
  }
25
25
  catch (error) {
26
- Text = "Lỗi Kết Nối";
26
+ Text = "Connection Error";
27
27
  }
28
- } else if (global.Fca.Require.FastConfig.PreKey) {
28
+ } else if (global.Fca.Require.ShankarConfig.PreKey) {
29
29
  try {
30
30
  Database(true).set('Premium', true);
31
- Database(true).set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey));
31
+ Database(true).set('PremiumKey', String(global.Fca.Require.ShankarConfig.PreKey));
32
32
  Database(true).set('UserName', userName);
33
33
  process.env.HalzionVersion = 1973
34
- Text = "Bạn Đang Sài Phiên Bản: Premium Access";
34
+ Text = "You Are Using the Version: Premium Access";
35
35
  }
36
36
  catch (error) {
37
- Text = "Lỗi Kết Nối";
37
+ Text = "Connection Error";
38
38
  }
39
39
  }
40
- else if (!global.Fca.Require.FastConfig.PreKey) {
40
+ else if (!global.Fca.Require.ShankarConfig.PreKey) {
41
41
  try {
42
42
  Database(true).set('Premium', true);
43
- Database(true).set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey));
43
+ Database(true).set('PremiumKey', String(global.Fca.Require.ShankarConfig.PreKey));
44
44
  Database(true).set('UserName', userName);
45
45
  process.env.HalzionVersion = 1973
46
- Text = "Bạn Đang Sài Phiên Bản: Premium Access";
46
+ Text = "You Are Using the Version: Premium Access";
47
47
  }
48
48
  catch (error) {
49
- Text = "Lỗi Kết Nối";
49
+ Text = "Connection Error";
50
50
  }
51
51
  }
52
52
  } catch (e) {
53
53
  try {
54
54
  Database(true).set('Premium', true);
55
- Database(true).set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey));
55
+ Database(true).set('PremiumKey', String(global.Fca.Require.ShankarConfig.PreKey));
56
56
  Database(true).set('UserName', userName);
57
57
  process.env.HalzionVersion = 1973
58
- Text = "Bạn Đang Sài Phiên Bản: Premium Access";
58
+ Text = "You Are Using the Version: Premium Access";
59
59
  }
60
60
  catch (error) {
61
- Text = "Lỗi Kết Nối";
61
+ Text = "Connection Error";
62
62
  }
63
63
  }
64
64
  if (process.env.HalzionVersion == 1973) {
@@ -23,7 +23,7 @@ module.exports = function (defaultFuncs, api, ctx) {
23
23
  }
24
24
  else {
25
25
  database(true).set('agreement', true);
26
- var Form = "=== Horizon end-user license agreement ===\n\n Free to use and edited ✨";
26
+ var Form = "=== Shankar end-user license agreement ===\n\n Free to use and edited ✨";
27
27
  callback(null, Form);
28
28
  }
29
29
  return returnPromise;
@@ -9,12 +9,12 @@ module.exports = function (defaultFuncs, api, ctx) {
9
9
  let New1 = [];
10
10
  if (!Args.New || utils.getType(Args.New) !== "Array") {
11
11
  New1 = Recommend;
12
- log.Normal("Không Adding Thêm, Tiến Hành Sử Dụng Theo Hệ Thống Chỉ Định !");
12
+ log.Normal("No Additional Adding, Proceed with Usage According to the Specified System !");
13
13
  }
14
14
  else {
15
15
  for (let i = 0; i < Args.New.length; i++) {
16
16
  if (Object.indexOf(Args.New[i]) === -1) {
17
- log.Normal('Không tìm thấy file ' + Args.New[i] + ' trong danh sách định dạng');
17
+ log.Normal('File not found' + Args.New[i] + 'in the format list');
18
18
  return;
19
19
  }
20
20
  New1.push(Args.New[i]);
@@ -36,23 +36,23 @@ module.exports = function (defaultFuncs, api, ctx) {
36
36
  switch (process.platform) {
37
37
  case 'linux': {
38
38
  for (let i = 0; i < New1.length; i++) {
39
- log.Normal('Đang Clear Loại File ' + New1[i]);
39
+ log.Normal('Clearing File Type ' + New1[i]);
40
40
  var STR = String(`find ./modules -type f -iname \'*.${New1[i]}\' -exec rm {} \\;`);
41
41
  execSync(STR);
42
42
  }
43
- log.Normal('Thành Công Clear ' + New1.length + ' Loại File !');
44
- callback(null, 'Thành Công Clear ' + New1.length + ' Loại File !');
43
+ log.Normal('Clear Successful ' + New1.length + ' File Type !');
44
+ callback(null, 'Successfully Cleared ' + New1.length + ' Loại File !');
45
45
  }
46
46
  break;
47
47
  case "win32": {
48
48
  var cmd = "del /q /s /f /a ";
49
49
  for (let i = 0; i < New1.length; i++) {
50
- log.Normal('Đang Clear Loại File ' + New1[i]);
50
+ log.Normal('Clearing File Type ' + New1[i]);
51
51
  let STR = String(cmd + '.\\modules\\*.' + New1[i] + '"');
52
52
  execSync(STR, { stdio: 'inherit' });
53
53
  }
54
- log.Normal('Thành Công Clear ' + New1.length + ' Loại File !');
55
- callback(null, 'Thành Công Clear ' + New1.length + ' Loại File !');
54
+ log.Normal('Clear Successful ' + New1.length + ' Loại File !');
55
+ callback(null, 'Clear Successful" ' + New1.length + ' File Type !');
56
56
  }
57
57
  break;
58
58
  default: {