alicezetion 1.5.2 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -1
  2. package/.cache/replit/nix/env.json +1 -1
  3. package/index.js +601 -386
  4. package/leiamnash/addExternalModule.js +19 -16
  5. package/leiamnash/addUserToGroup.js +113 -79
  6. package/leiamnash/changeAdminStatus.js +79 -79
  7. package/leiamnash/changeArchivedStatus.js +55 -41
  8. package/leiamnash/changeBio.js +77 -65
  9. package/leiamnash/changeBlockedStatus.js +47 -36
  10. package/leiamnash/changeGroupImage.js +129 -106
  11. package/leiamnash/changeNickname.js +59 -45
  12. package/leiamnash/changeThreadColor.js +71 -62
  13. package/leiamnash/changeThreadEmoji.js +55 -42
  14. package/leiamnash/chat.js +459 -374
  15. package/leiamnash/createNewGroup.js +86 -70
  16. package/leiamnash/createPoll.js +71 -60
  17. package/leiamnash/deleteMessage.js +56 -45
  18. package/leiamnash/deleteThread.js +56 -43
  19. package/leiamnash/forwardAttachment.js +60 -48
  20. package/leiamnash/getCurrentUserID.js +7 -7
  21. package/leiamnash/getEmojiUrl.js +29 -27
  22. package/leiamnash/getFriendsList.js +84 -73
  23. package/leiamnash/getThreadHistory.js +645 -537
  24. package/leiamnash/getThreadHistoryDeprecated.js +93 -0
  25. package/leiamnash/getThreadInfo.js +206 -425
  26. package/leiamnash/getThreadInfoDeprecated.js +80 -0
  27. package/leiamnash/getThreadList.js +238 -213
  28. package/leiamnash/getThreadListDeprecated.js +75 -0
  29. package/leiamnash/getThreadPictures.js +79 -59
  30. package/leiamnash/getUserID.js +66 -62
  31. package/leiamnash/getUserInfo.js +72 -113
  32. package/leiamnash/handleFriendRequest.js +61 -46
  33. package/leiamnash/handleMessageRequest.js +65 -49
  34. package/leiamnash/httpGet.js +52 -49
  35. package/leiamnash/httpPost.js +52 -48
  36. package/leiamnash/listenMqtt.js +789 -787
  37. package/leiamnash/logout.js +75 -68
  38. package/leiamnash/markAsDelivered.js +58 -48
  39. package/leiamnash/markAsRead.js +80 -70
  40. package/leiamnash/markAsReadAll.js +49 -42
  41. package/leiamnash/markAsSeen.js +59 -51
  42. package/leiamnash/muteThread.js +52 -47
  43. package/leiamnash/removeUserFromGroup.js +79 -49
  44. package/leiamnash/resolvePhotoUrl.js +45 -37
  45. package/leiamnash/searchForThread.js +53 -43
  46. package/leiamnash/sendTypingIndicator.js +103 -80
  47. package/leiamnash/setMessageReaction.js +117 -109
  48. package/leiamnash/setPostReaction.js +76 -102
  49. package/leiamnash/setTitle.js +86 -74
  50. package/leiamnash/threadColors.js +57 -39
  51. package/leiamnash/unfriend.js +52 -43
  52. package/leiamnash/unsendMessage.js +49 -40
  53. package/package.json +71 -88
  54. package/utils.js +1356 -1684
  55. package/Extra/Database/index.js +0 -469
  56. package/Extra/ExtraAddons.js +0 -82
  57. package/Extra/ExtraFindUID.js +0 -62
  58. package/Extra/ExtraGetThread.js +0 -340
  59. package/Extra/ExtraScreenShot.js +0 -430
  60. package/Extra/ExtraUptimeRobot.js +0 -38
  61. package/Extra/Html/Classic/script.js +0 -119
  62. package/Extra/Html/Classic/style.css +0 -8
  63. package/Extra/Security/AES_256_GCM/index.js +0 -0
  64. package/Extra/Security/Base/Step_1.js +0 -6
  65. package/Extra/Security/Base/Step_2.js +0 -22
  66. package/Extra/Security/Base/Step_3.js +0 -22
  67. package/Extra/Security/Base/index.js +0 -174
  68. package/Extra/Security/Index.js +0 -5
  69. package/Extra/Security/Step_1.js +0 -6
  70. package/Extra/Security/Step_2.js +0 -22
  71. package/Extra/Security/Step_3.js +0 -22
  72. package/Extra/Src/Change_Environment.js +0 -24
  73. package/Extra/Src/Check_Update.js +0 -67
  74. package/Extra/Src/History.js +0 -115
  75. package/Extra/Src/Instant_Update.js +0 -65
  76. package/Extra/Src/Last-Run.js +0 -65
  77. package/Extra/Src/Premium.js +0 -81
  78. package/Extra/Src/Release_Memory.js +0 -41
  79. package/Extra/Src/Websocket.js +0 -213
  80. package/Extra/Src/image/checkmate.jpg +0 -0
  81. package/Extra/Src/uuid.js +0 -137
  82. package/Func/AcceptAgreement.js +0 -31
  83. package/Func/ClearCache.js +0 -64
  84. package/Func/ReportV1.js +0 -54
  85. package/Language/index.json +0 -217
  86. package/Main.js +0 -1273
  87. package/broadcast.js +0 -40
  88. package/leiamnash/Dev_Horizon_Data.js +0 -125
  89. package/leiamnash/Premium.js +0 -25
  90. package/leiamnash/Screenshot.js +0 -83
  91. package/leiamnash/changeAvt.js +0 -85
  92. package/leiamnash/getAccessToken.js +0 -28
  93. package/leiamnash/getMessage.js +0 -80
  94. package/leiamnash/getThreadMain.js +0 -220
  95. package/leiamnash/getUID.js +0 -59
  96. package/leiamnash/getUserInfoMain.js +0 -65
  97. package/leiamnash/getUserInfoV2.js +0 -32
  98. package/leiamnash/getUserInfoV3.js +0 -63
  99. package/leiamnash/getUserInfoV4.js +0 -55
  100. package/leiamnash/getUserInfoV5.js +0 -61
  101. package/leiamnash/httpPostFormData.js +0 -41
  102. package/leiamnash/sendMessage.js +0 -379
  103. package/logger.js +0 -66
@@ -1,39 +1,57 @@
1
- "use strict";
2
-
3
- module.exports = function(_defaultFuncs, _api, _ctx) {
4
- // Currently the only colors that can be passed to api.changeThreadColor(); may change if Facebook adds more
5
- return {
6
- ////MessengerBlue: null,
7
- ////Viking: "#44bec7",
8
- ////GoldenPoppy: "#ffc300",
9
- ////RadicalRed: "#fa3c4c",
10
- ////Shocking: "#d696bb",
11
- ////PictonBlue: "#6699cc",
12
- ////FreeSpeechGreen: "#13cf13",
13
- ////Pumpkin: "#ff7e29",
14
- ////LightCoral: "#e68585",
15
- ////MediumSlateBlue: "#7646ff",
16
- ////DeepSkyBlue: "#20cef5",
17
- ////Fern: "#67b868",
18
- ////Cameo: "#d4a88c",
19
- ////BrilliantRose: "#ff5ca1",
20
- ////BilobaFlower: "#a695c7"
21
- DefaultBlue: "196241301102133",
22
- HotPink: "169463077092846",
23
- AquaBlue: "2442142322678320",
24
- BrightPurple: "234137870477637",
25
- CoralPink: "980963458735625",
26
- Orange: "175615189761153",
27
- Green: "2136751179887052",
28
- LavenderPurple: "2058653964378557",
29
- Red: "2129984390566328",
30
- Yellow: "174636906462322",
31
- TealBlue: "1928399724138152",
32
- Aqua: "417639218648241",
33
- Mango: "930060997172551",
34
- Berry: "164535220883264",
35
- Citrus: "370940413392601",
36
- Candy: "205488546921017",
37
- StarWars: "809305022860427"
38
- };
39
- };
1
+ "use strict";
2
+
3
+ module.exports = function(_defaultFuncs, _api, _ctx) {
4
+ // Currently the only colors that can be passed to api.changeThreadColor(); may change if Facebook adds more
5
+ return {
6
+ //Old hex colors.
7
+ ////MessengerBlue: null,
8
+ ////Viking: "#44bec7",
9
+ ////GoldenPoppy: "#ffc300",
10
+ ////RadicalRed: "#fa3c4c",
11
+ ////Shocking: "#d696bb",
12
+ ////PictonBlue: "#6699cc",
13
+ ////FreeSpeechGreen: "#13cf13",
14
+ ////Pumpkin: "#ff7e29",
15
+ ////LightCoral: "#e68585",
16
+ ////MediumSlateBlue: "#7646ff",
17
+ ////DeepSkyBlue: "#20cef5",
18
+ ////Fern: "#67b868",
19
+ ////Cameo: "#d4a88c",
20
+ ////BrilliantRose: "#ff5ca1",
21
+ ////BilobaFlower: "#a695c7"
22
+
23
+ //#region This part is for backward compatibly
24
+ //trying to match the color one-by-one. kill me plz
25
+ MessengerBlue: "196241301102133", //DefaultBlue
26
+ Viking: "1928399724138152", //TealBlue
27
+ GoldenPoppy: "174636906462322", //Yellow
28
+ RadicalRed: "2129984390566328", //Red
29
+ Shocking: "2058653964378557", //LavenderPurple
30
+ FreeSpeechGreen: "2136751179887052", //Green
31
+ Pumpkin: "175615189761153", //Orange
32
+ LightCoral: "980963458735625", //CoralPink
33
+ MediumSlateBlue: "234137870477637", //BrightPurple
34
+ DeepSkyBlue: "2442142322678320", //AquaBlue
35
+ BrilliantRose: "169463077092846", //HotPink
36
+ //i've tried my best, everything else can't be mapped. (or is it?) -UIRI 2020
37
+ //#endregion
38
+
39
+ DefaultBlue: "196241301102133",
40
+ HotPink: "169463077092846",
41
+ AquaBlue: "2442142322678320",
42
+ BrightPurple: "234137870477637",
43
+ CoralPink: "980963458735625",
44
+ Orange: "175615189761153",
45
+ Green: "2136751179887052",
46
+ LavenderPurple: "2058653964378557",
47
+ Red: "2129984390566328",
48
+ Yellow: "174636906462322",
49
+ TealBlue: "1928399724138152",
50
+ Aqua: "417639218648241",
51
+ Mango: "930060997172551",
52
+ Berry: "164535220883264",
53
+ Citrus: "370940413392601",
54
+ Candy: "205488546921017",
55
+ //StarWars: "809305022860427" Removed.
56
+ };
57
+ };
@@ -1,43 +1,52 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return function unfriend(userID, callback) {
8
- var resolveFunc = function () { };
9
- var rejectFunc = function () { };
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
-
15
- if (!callback) {
16
- callback = function (err, friendList) {
17
- if (err) return rejectFunc(err);
18
- resolveFunc(friendList);
19
- };
20
- }
21
-
22
- var form = {
23
- uid: userID,
24
- unref: "bd_friends_tab",
25
- floc: "friends_tab",
26
- "nctr[_mod]": "pagelet_timeline_app_collection_" + ctx.userID + ":2356318349:2"
27
- };
28
-
29
- defaultFuncs
30
- .post("https://www.facebook.com/ajax/profile/removefriendconfirm.php", ctx.jar, form)
31
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
32
- .then(function (resData) {
33
- if (resData.error) throw resData;
34
- return callback();
35
- })
36
- .catch(function (err) {
37
- log.error("unfriend", err);
38
- return callback(err);
39
- });
40
-
41
- return returnPromise;
42
- };
43
- };
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, api, ctx) {
7
+ return function unsendMessage(userID, callback) {
8
+ var resolveFunc = function(){};
9
+ var rejectFunc = function(){};
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback) {
16
+ callback = function (err, friendList) {
17
+ if (err) {
18
+ return rejectFunc(err);
19
+ }
20
+ resolveFunc(friendList);
21
+ };
22
+ }
23
+
24
+ var form = {
25
+ uid: userID,
26
+ unref: "bd_friends_tab",
27
+ floc: "friends_tab",
28
+ "nctr[_mod]": "pagelet_timeline_app_collection_" + ctx.userID + ":2356318349:2"
29
+ };
30
+
31
+ defaultFuncs
32
+ .post(
33
+ "https://www.facebook.com/ajax/profile/removefriendconfirm.php",
34
+ ctx.jar,
35
+ form
36
+ )
37
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
38
+ .then(function(resData) {
39
+ if (resData.error) {
40
+ throw resData;
41
+ }
42
+
43
+ return callback();
44
+ })
45
+ .catch(function(err) {
46
+ log.error("unfriend", err);
47
+ return callback(err);
48
+ });
49
+
50
+ return returnPromise;
51
+ };
52
+ };
@@ -1,40 +1,49 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return function unsendMessage(messageID, callback) {
8
- var resolveFunc = function () { };
9
- var rejectFunc = function () { };
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
-
15
- if (!callback) {
16
- callback = function (err, friendList) {
17
- if (err) return rejectFunc(err);
18
- resolveFunc(friendList);
19
- };
20
- }
21
-
22
- var form = {
23
- message_id: messageID
24
- };
25
-
26
- defaultFuncs
27
- .post("https://www.facebook.com/messaging/unsend_message/", ctx.jar, form)
28
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
29
- .then(function (resData) {
30
- if (resData.error) throw resData;
31
- return callback();
32
- })
33
- .catch(function (err) {
34
- log.error("unsendMessage", err);
35
- return callback(err);
36
- });
37
-
38
- return returnPromise;
39
- };
40
- };
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, api, ctx) {
7
+ return function unsendMessage(messageID, callback) {
8
+ var resolveFunc = function(){};
9
+ var rejectFunc = function(){};
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback) {
16
+ callback = function (err, friendList) {
17
+ if (err) {
18
+ return rejectFunc(err);
19
+ }
20
+ resolveFunc(friendList);
21
+ };
22
+ }
23
+
24
+ var form = {
25
+ message_id: messageID
26
+ };
27
+
28
+ defaultFuncs
29
+ .post(
30
+ "https://www.facebook.com/messaging/unsend_message/",
31
+ ctx.jar,
32
+ form
33
+ )
34
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
35
+ .then(function(resData) {
36
+ if (resData.error) {
37
+ throw resData;
38
+ }
39
+
40
+ return callback();
41
+ })
42
+ .catch(function(err) {
43
+ log.error("unsendMessage", err);
44
+ return callback(err);
45
+ });
46
+
47
+ return returnPromise;
48
+ };
49
+ };
package/package.json CHANGED
@@ -1,89 +1,72 @@
1
- {
2
- "name": "alicezetion",
3
- "version": "1.5.2",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "mocha"
8
- },
9
- "author": "LeiamNash",
10
- "license": "MIT",
11
- "bugs": {
12
- "url": "https://leiamnash.vercel.app"
13
- },
14
- "homepage": "",
15
- "repository": {
16
- "type": "git",
17
- "url": ""
18
- },
19
- "dependencies": {
20
- "aes-js": "latest",
21
- "assert": "latest",
22
- "better-sqlite3": "7.6.2",
23
- "bluebird": "latest",
24
- "chalk": "4.1.2",
25
- "cheerio": "latest",
26
- "crypto-js": "latest",
27
- "deasync": "^0.1.28",
28
- "duplexify": "^4.1.2",
29
- "encode32": "latest",
30
- "express": "latest",
31
- "file-url": "^3.0.0",
32
- "got": "^11.8.6",
33
- "https-proxy-agent": "latest",
34
- "is-hexcolor": "^1.0.0",
35
- "lodash": "latest",
36
- "moment": "^2.29.4",
37
- "mqtt": "latest",
38
- "npmlog": "latest",
39
- "os": "latest",
40
- "path": "latest",
41
- "pretty-ms": "7.0.1",
42
- "readable-stream": "^4.4.0",
43
- "readline": "latest",
44
- "request": "latest",
45
- "totp-generator": "latest",
46
- "tough-cookie": "^4.1.2",
47
- "uuid": "latest",
48
- "speakeasy": "latest",
49
- "ws": "^8.13.0",
50
- "ansi-to-html": "latest"
51
- },
52
- "engines": {
53
- "node": ">=14.x"
54
- },
55
- "devDependencies": {
56
- "eslint": "^8.40.0",
57
- "mocha": "latest",
58
- "prettier": "latest"
59
- },
60
- "eslintConfig": {
61
- "env": {
62
- "es6": true,
63
- "node": true
64
- },
65
- "extends": "eslint:recommended",
66
- "parserOptions": {
67
- "sourceType": "module"
68
- },
69
- "rules": {
70
- "linebreak-style": [
71
- "error",
72
- "unix"
73
- ],
74
- "semi": [
75
- "error",
76
- "always"
77
- ],
78
- "no-unused-vars": [
79
- 1,
80
- {
81
- "argsIgnorePattern": "^_"
82
- }
83
- ]
84
- }
85
- },
86
- "keywords": [
87
- "leiamnash"
88
- ]
1
+ {
2
+ "name": "alicezetion",
3
+ "version": "1.5.4",
4
+ "description": "",
5
+ "scripts": {
6
+ "lint": "./node_modules/.bin/eslint **.js",
7
+ "prettier": "prettier utils.js src/* --write"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://leiamnash.vercel.app"
12
+ },
13
+ "keywords": [
14
+ "leiamnash"
15
+ ],
16
+ "bugs": {
17
+ "url": ""
18
+ },
19
+ "author": "LeiamNash",
20
+ "license": "MIT",
21
+ "dependencies": {
22
+ "bluebird": "^2.11.0",
23
+ "cheerio": "^0.22.0",
24
+ "https-proxy-agent": "^4.0.0",
25
+ "mqtt": "^3.0.0",
26
+ "npmlog": "^1.2.0",
27
+ "request": "^2.53.0",
28
+ "websocket-stream": "^5.5.0"
29
+ },
30
+ "engines": {
31
+ "node": ">=10.x"
32
+ },
33
+ "devDependencies": {
34
+ "eslint": "^7.5.0",
35
+ "mocha": "^7.0.1",
36
+ "prettier": "^1.11.1"
37
+ },
38
+ "eslintConfig": {
39
+ "env": {
40
+ "es6": true,
41
+ "es2017": true,
42
+ "node": true
43
+ },
44
+ "extends": "eslint:recommended",
45
+ "parserOptions": {
46
+ "sourceType": "module"
47
+ },
48
+ "rules": {
49
+ "linebreak-style": [
50
+ "error",
51
+ "unix"
52
+ ],
53
+ "semi": [
54
+ "error",
55
+ "always"
56
+ ],
57
+ "no-unused-vars": [
58
+ 1,
59
+ {
60
+ "argsIgnorePattern": "^_",
61
+ "varsIgnorePattern": "^_"
62
+ }
63
+ ],
64
+ "no-empty": [
65
+ "error",
66
+ {
67
+ "allowEmptyCatch": true
68
+ }
69
+ ]
70
+ }
71
+ }
89
72
  }