alicezetion 1.6.7 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -1
- package/.cache/replit/nix/env.json +1 -1
- package/index.js +804 -381
- package/leiamnash/addExternalModule.js +19 -19
- package/leiamnash/addUserToGroup.js +113 -113
- package/leiamnash/changeAdminStatus.js +79 -79
- package/leiamnash/changeApprovalMode.js +80 -0
- package/leiamnash/changeArchivedStatus.js +55 -55
- package/leiamnash/changeBio.js +77 -77
- package/leiamnash/changeBlockedStatus.js +47 -47
- package/leiamnash/changeGroupImage.js +129 -129
- package/leiamnash/changeNickname.js +59 -59
- package/leiamnash/changeThreadColor.js +71 -71
- package/leiamnash/changeThreadEmoji.js +55 -55
- package/leiamnash/chat.js +447 -459
- package/leiamnash/createNewGroup.js +86 -86
- package/leiamnash/createPoll.js +71 -71
- package/leiamnash/deleteMessage.js +56 -56
- package/leiamnash/deleteThread.js +56 -56
- package/leiamnash/forwardAttachment.js +60 -60
- package/leiamnash/getCurrentUserID.js +7 -7
- package/leiamnash/getEmojiUrl.js +29 -29
- package/leiamnash/getFriendsList.js +84 -84
- package/leiamnash/getThreadHistory.js +645 -645
- package/leiamnash/getThreadHistoryDeprecated.js +93 -93
- package/leiamnash/getThreadInfo.js +212 -206
- package/leiamnash/getThreadInfoDeprecated.js +80 -80
- package/leiamnash/getThreadList.js +238 -238
- package/leiamnash/getThreadListDeprecated.js +75 -75
- package/leiamnash/getThreadPictures.js +79 -79
- package/leiamnash/getUserID.js +66 -66
- package/leiamnash/getUserInfo.js +72 -72
- package/leiamnash/handleFriendRequest.js +61 -61
- package/leiamnash/handleMessageRequest.js +65 -65
- package/leiamnash/httpGet.js +52 -52
- package/leiamnash/httpPost.js +52 -52
- package/leiamnash/listenMqtt.js +1078 -509
- package/leiamnash/logout.js +75 -75
- package/leiamnash/markAsDelivered.js +58 -58
- package/leiamnash/markAsRead.js +80 -80
- package/leiamnash/markAsReadAll.js +49 -49
- package/leiamnash/markAsSeen.js +59 -59
- package/leiamnash/muteThread.js +52 -52
- package/leiamnash/removeUserFromGroup.js +79 -79
- package/leiamnash/resolvePhotoUrl.js +45 -45
- package/leiamnash/searchForThread.js +53 -53
- package/leiamnash/sendTypingIndicator.js +103 -103
- package/leiamnash/setMessageReaction.js +117 -117
- package/leiamnash/setPostReaction.js +76 -76
- package/leiamnash/setTitle.js +86 -86
- package/leiamnash/threadColors.js +57 -57
- package/leiamnash/unfriend.js +52 -52
- package/leiamnash/unsendMessage.js +49 -49
- package/package.json +72 -72
- package/replit.nix +3 -0
- package/utils.js +196 -71
- package/leiamnash/listen.js +0 -553
package/leiamnash/unfriend.js
CHANGED
@@ -1,52 +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 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
|
+
"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,49 +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) {
|
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
|
-
};
|
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,72 +1,72 @@
|
|
1
|
-
{
|
2
|
-
"name": "alicezetion",
|
3
|
-
"version": "1.6.
|
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": "
|
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.
|
24
|
-
"https-proxy-agent": "^4.0.0",
|
25
|
-
"mqtt": "^3.
|
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": "^
|
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
|
-
}
|
72
|
-
}
|
1
|
+
{
|
2
|
+
"name": "alicezetion",
|
3
|
+
"version": "1.6.9",
|
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": ""
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"leiamnash"
|
15
|
+
],
|
16
|
+
"bugs": {
|
17
|
+
"url": "https://leiamnash.vercel.app"
|
18
|
+
},
|
19
|
+
"author": "LeiamNash",
|
20
|
+
"license": "MIT",
|
21
|
+
"dependencies": {
|
22
|
+
"bluebird": "^2.11.0",
|
23
|
+
"cheerio": "^1.0.0-rc.12",
|
24
|
+
"https-proxy-agent": "^4.0.0",
|
25
|
+
"mqtt": "^4.3.7",
|
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": "^10.2.0",
|
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
|
+
}
|
72
|
+
}
|