alicezetion 1.7.0 → 1.7.2
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/Extra/Database/index.js +399 -0
- package/Extra/Database/methods.js +286 -0
- package/Extra/ExtraAddons.js +213 -0
- package/Extra/ExtraGetThread.js +1 -0
- package/Extra/ExtraUptimeRobot.js +59 -0
- package/Extra/PM2/ecosystem.config.js +23 -0
- package/Extra/Src/Last-Run.js +48 -0
- package/Language/index.json +151 -0
- package/StateCrypt.js +22 -0
- package/broadcast.js +42 -0
- package/index.js +755 -533
- package/logger.js +21 -0
- package/package.json +35 -21
- package/replit.nix +0 -3
- package/src/addExternalModule.js +23 -0
- package/{leiamnash → src}/addUserToGroup.js +11 -23
- package/{leiamnash → src}/changeAdminStatus.js +32 -16
- package/{leiamnash → src}/changeArchivedStatus.js +9 -17
- package/src/changeAvt.js +91 -0
- package/{leiamnash → src}/changeBio.js +16 -24
- package/{leiamnash → src}/changeBlockedStatus.js +13 -18
- package/{leiamnash → src}/changeGroupImage.js +14 -23
- package/{leiamnash → src}/changeNickname.js +9 -14
- package/{leiamnash → src}/changeThreadColor.js +6 -10
- package/{leiamnash → src}/changeThreadEmoji.js +6 -11
- package/{leiamnash → src}/chat.js +116 -127
- package/{leiamnash → src}/createNewGroup.js +19 -27
- package/{leiamnash → src}/createPoll.js +6 -12
- package/{leiamnash → src}/deleteMessage.js +8 -13
- package/{leiamnash → src}/deleteThread.js +7 -14
- package/{leiamnash → src}/forwardAttachment.js +9 -16
- package/src/getAccessToken.js +32 -0
- package/{leiamnash → src}/getCurrentUserID.js +0 -0
- package/{leiamnash → src}/getEmojiUrl.js +1 -2
- package/{leiamnash → src}/getFriendsList.js +11 -14
- package/src/getMessage.js +84 -0
- package/{leiamnash → src}/getThreadHistory.js +27 -38
- package/{leiamnash → src}/getThreadHistoryDeprecated.js +14 -25
- package/src/getThreadInfo.js +197 -0
- package/{leiamnash → src}/getThreadInfoDeprecated.js +12 -24
- package/{leiamnash → src}/getThreadList.js +122 -88
- package/{leiamnash → src}/getThreadListDeprecated.js +9 -20
- package/{leiamnash → src}/getThreadPictures.js +9 -17
- package/{leiamnash → src}/getUserID.js +8 -11
- package/{leiamnash → src}/getUserInfo.js +12 -16
- package/src/getUserInfoV2.js +35 -0
- package/src/handleFriendRequest.js +47 -0
- package/{leiamnash → src}/handleMessageRequest.js +12 -22
- package/{leiamnash → src}/httpGet.js +15 -13
- package/{leiamnash → src}/httpPost.js +14 -13
- package/src/httpPostFormData.js +46 -0
- package/src/listenMqtt.js +1280 -0
- package/{leiamnash → src}/logout.js +7 -9
- package/{leiamnash → src}/markAsDelivered.js +14 -18
- package/{leiamnash → src}/markAsRead.js +30 -28
- package/{leiamnash → src}/markAsSeen.js +18 -19
- package/{leiamnash → src}/muteThread.js +7 -8
- package/{leiamnash/setMessageReaction.js → src/react.js} +15 -18
- package/{leiamnash → src}/removeUserFromGroup.js +13 -20
- package/{leiamnash → src}/resolvePhotoUrl.js +7 -13
- package/{leiamnash → src}/searchForThread.js +8 -13
- package/{leiamnash/markAsReadAll.js → src/seen.js} +10 -13
- package/{leiamnash → src}/sendTypingIndicator.js +23 -31
- package/src/setPostReaction.js +104 -0
- package/{leiamnash → src}/setTitle.js +15 -21
- package/src/threadColors.js +39 -0
- package/{leiamnash → src}/unfriend.js +9 -13
- package/{leiamnash/unsendMessage.js → src/unsend.js} +7 -16
- package/utils.js +1112 -1236
- package/leiamnash/addExternalModule.js +0 -19
- package/leiamnash/changeApprovalMode.js +0 -80
- package/leiamnash/getThreadInfo.js +0 -212
- package/leiamnash/handleFriendRequest.js +0 -61
- package/leiamnash/listenMqtt.js +0 -1129
- package/leiamnash/setPostReaction.js +0 -76
- package/leiamnash/threadColors.js +0 -57
@@ -1,76 +0,0 @@
|
|
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(postID, type, 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 map = {
|
25
|
-
like: 1,
|
26
|
-
heart: 2,
|
27
|
-
wow: 3,
|
28
|
-
haha: 4,
|
29
|
-
sad: 7,
|
30
|
-
angry: 8
|
31
|
-
};
|
32
|
-
if (typeof type != "number") {
|
33
|
-
type = map[type.toLocaleLowerCase()];
|
34
|
-
if (!type) {
|
35
|
-
type = 1;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
var form = {
|
39
|
-
av: ctx.userID,
|
40
|
-
fb_api_caller_class: "RelayModern",
|
41
|
-
fb_api_req_friendly_name: "UFI2FeedbackReactMutation",
|
42
|
-
//This doc_id is valid as of January 17th, 2020
|
43
|
-
doc_id: "2580813318646067",
|
44
|
-
variables: JSON.stringify({
|
45
|
-
input: {
|
46
|
-
client_mutation_id: "7",
|
47
|
-
actor_id: ctx.userID,
|
48
|
-
feedback_reaction: type,
|
49
|
-
|
50
|
-
},
|
51
|
-
useDefaultActor: true
|
52
|
-
})
|
53
|
-
};
|
54
|
-
|
55
|
-
defaultFuncs
|
56
|
-
.post(
|
57
|
-
"https://www.facebook.com/api/graphql/",
|
58
|
-
ctx.jar,
|
59
|
-
form
|
60
|
-
)
|
61
|
-
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
62
|
-
.then(function(resData) {
|
63
|
-
if (resData.error) {
|
64
|
-
throw resData;
|
65
|
-
}
|
66
|
-
|
67
|
-
return callback();
|
68
|
-
})
|
69
|
-
.catch(function(err) {
|
70
|
-
log.error("setPostReaction", err);
|
71
|
-
return callback(err);
|
72
|
-
});
|
73
|
-
|
74
|
-
return returnPromise;
|
75
|
-
};
|
76
|
-
};
|
@@ -1,57 +0,0 @@
|
|
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
|
-
};
|