alicezetion 1.5.3 → 1.5.5
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 +576 -382
- package/leiamnash/addExternalModule.js +19 -16
- package/leiamnash/addUserToGroup.js +113 -79
- package/leiamnash/changeAdminStatus.js +79 -79
- package/leiamnash/changeArchivedStatus.js +55 -41
- package/leiamnash/changeBio.js +77 -65
- package/leiamnash/changeBlockedStatus.js +47 -36
- package/leiamnash/changeGroupImage.js +129 -106
- package/leiamnash/changeNickname.js +59 -45
- package/leiamnash/changeThreadColor.js +71 -62
- package/leiamnash/changeThreadEmoji.js +55 -42
- package/leiamnash/chat.js +459 -374
- package/leiamnash/createNewGroup.js +86 -70
- package/leiamnash/createPoll.js +71 -60
- package/leiamnash/deleteMessage.js +56 -45
- package/leiamnash/deleteThread.js +56 -43
- package/leiamnash/forwardAttachment.js +60 -48
- package/leiamnash/getCurrentUserID.js +7 -7
- package/leiamnash/getEmojiUrl.js +29 -27
- package/leiamnash/getFriendsList.js +84 -73
- package/leiamnash/getThreadHistory.js +645 -537
- package/leiamnash/getThreadHistoryDeprecated.js +93 -0
- package/leiamnash/getThreadInfo.js +206 -425
- package/leiamnash/getThreadInfoDeprecated.js +80 -0
- package/leiamnash/getThreadList.js +238 -213
- package/leiamnash/getThreadListDeprecated.js +75 -0
- package/leiamnash/getThreadPictures.js +79 -59
- package/leiamnash/getUserID.js +66 -62
- package/leiamnash/getUserInfo.js +72 -113
- package/leiamnash/handleFriendRequest.js +61 -46
- package/leiamnash/handleMessageRequest.js +65 -49
- package/leiamnash/httpGet.js +52 -49
- package/leiamnash/httpPost.js +52 -48
- package/leiamnash/listenMqtt.js +789 -787
- package/leiamnash/logout.js +75 -68
- package/leiamnash/markAsDelivered.js +58 -48
- package/leiamnash/markAsRead.js +80 -70
- package/leiamnash/markAsReadAll.js +49 -42
- package/leiamnash/markAsSeen.js +59 -51
- package/leiamnash/muteThread.js +52 -47
- package/leiamnash/removeUserFromGroup.js +79 -49
- package/leiamnash/resolvePhotoUrl.js +45 -37
- package/leiamnash/searchForThread.js +53 -43
- package/leiamnash/sendTypingIndicator.js +103 -80
- package/leiamnash/setMessageReaction.js +117 -109
- package/leiamnash/setPostReaction.js +76 -102
- package/leiamnash/setTitle.js +86 -74
- package/leiamnash/threadColors.js +57 -39
- package/leiamnash/unfriend.js +52 -43
- package/leiamnash/unsendMessage.js +49 -40
- package/package.json +72 -90
- package/utils.js +1356 -1684
- package/Extra/Database/index.js +0 -469
- package/Extra/ExtraAddons.js +0 -82
- package/Extra/ExtraFindUID.js +0 -62
- package/Extra/ExtraGetThread.js +0 -340
- package/Extra/ExtraScreenShot.js +0 -430
- package/Extra/ExtraUptimeRobot.js +0 -38
- package/Extra/Html/Classic/script.js +0 -119
- package/Extra/Html/Classic/style.css +0 -8
- package/Extra/Security/AES_256_GCM/index.js +0 -0
- package/Extra/Security/Base/Step_1.js +0 -6
- package/Extra/Security/Base/Step_2.js +0 -22
- package/Extra/Security/Base/Step_3.js +0 -22
- package/Extra/Security/Base/index.js +0 -174
- package/Extra/Security/Index.js +0 -5
- package/Extra/Security/Step_1.js +0 -6
- package/Extra/Security/Step_2.js +0 -22
- package/Extra/Security/Step_3.js +0 -22
- package/Extra/Src/Change_Environment.js +0 -24
- package/Extra/Src/Check_Update.js +0 -67
- package/Extra/Src/History.js +0 -115
- package/Extra/Src/Instant_Update.js +0 -65
- package/Extra/Src/Last-Run.js +0 -65
- package/Extra/Src/Premium.js +0 -81
- package/Extra/Src/Release_Memory.js +0 -41
- package/Extra/Src/Websocket.js +0 -213
- package/Extra/Src/image/checkmate.jpg +0 -0
- package/Extra/Src/uuid.js +0 -137
- package/Func/AcceptAgreement.js +0 -31
- package/Func/ClearCache.js +0 -64
- package/Func/ReportV1.js +0 -54
- package/Language/index.json +0 -217
- package/Main.js +0 -1270
- package/broadcast.js +0 -40
- package/leiamnash/Dev_Horizon_Data.js +0 -125
- package/leiamnash/Premium.js +0 -25
- package/leiamnash/Screenshot.js +0 -83
- package/leiamnash/changeAvt.js +0 -85
- package/leiamnash/getAccessToken.js +0 -28
- package/leiamnash/getMessage.js +0 -80
- package/leiamnash/getThreadMain.js +0 -220
- package/leiamnash/getUID.js +0 -59
- package/leiamnash/getUserInfoMain.js +0 -65
- package/leiamnash/getUserInfoV2.js +0 -32
- package/leiamnash/getUserInfoV3.js +0 -63
- package/leiamnash/getUserInfoV4.js +0 -55
- package/leiamnash/getUserInfoV5.js +0 -61
- package/leiamnash/httpPostFormData.js +0 -41
- package/leiamnash/sendMessage.js +0 -379
- package/logger.js +0 -66
package/Extra/ExtraGetThread.js
DELETED
@@ -1,340 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
"use strict";
|
3
|
-
var Database= require("./Database");
|
4
|
-
const { lastRun,capture } = require('./Src/Last-Run');
|
5
|
-
const logger = require("../logger");
|
6
|
-
const getText = global.Fca.getText;
|
7
|
-
var language = require("../Language/index.json");
|
8
|
-
const fs = require("fs");
|
9
|
-
language = language.find(i => i.Language == require(process.cwd() + "/alice/database/alicization.json").Language).Folder.ExtraGetThread;
|
10
|
-
|
11
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
12
|
-
if (!fs.existsSync(process.cwd() + "/alice/database/threads.json")) {
|
13
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify({}));
|
14
|
-
}
|
15
|
-
}
|
16
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "default" && global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "json") {
|
17
|
-
logger.Warning("Database_Type in alicization.json is not valid. Only default and json are valid.");
|
18
|
-
process.exit(0);
|
19
|
-
}
|
20
|
-
|
21
|
-
exports.createData = function(threadID,threadData) {
|
22
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
23
|
-
try {
|
24
|
-
Database(true).set(String(threadID),Object(threadData));
|
25
|
-
logger.Normal(getText(language.CreateDatabaseSuccess,String(threadID)));
|
26
|
-
}
|
27
|
-
catch (e) {
|
28
|
-
console.log(e);
|
29
|
-
logger.Warning(getText(language.CreateDatabaseFailure,String(threadID)));
|
30
|
-
}
|
31
|
-
}
|
32
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
33
|
-
try {
|
34
|
-
try {
|
35
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
36
|
-
}
|
37
|
-
catch (e) {
|
38
|
-
var data = {};
|
39
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
40
|
-
}
|
41
|
-
|
42
|
-
data[String(threadID)] = Object(threadData);
|
43
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
44
|
-
logger.Normal(getText(language.CreateDatabaseSuccess,String(threadID)));
|
45
|
-
}
|
46
|
-
catch (e) {
|
47
|
-
console.log(e);
|
48
|
-
logger.Warning(getText(language.CreateDatabaseFailure,String(threadID)));
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
exports.updateData = function(threadID,threadData) {
|
54
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
55
|
-
try {
|
56
|
-
Database(true).set(String(threadID),Object(threadData));
|
57
|
-
logger.Normal(getText(language.updateDataSuccess,String(threadID)));
|
58
|
-
}
|
59
|
-
catch (e) {
|
60
|
-
console.log(e);
|
61
|
-
logger.Warning(getText(language.updateDataFailure,String(threadID)));
|
62
|
-
}
|
63
|
-
}
|
64
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
65
|
-
try {
|
66
|
-
try {
|
67
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
68
|
-
}
|
69
|
-
catch (e) {
|
70
|
-
var data = {};
|
71
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
72
|
-
}
|
73
|
-
|
74
|
-
data[String(threadID)] = Object(threadData);
|
75
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
76
|
-
logger.Normal(getText(language.updateDataSuccess,String(threadID)));
|
77
|
-
}
|
78
|
-
catch (e) {
|
79
|
-
console.log(e);
|
80
|
-
logger.Warning(getText(language.updateDataFailure,String(threadID)));
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
exports.updateMessageCount = function(threadID,threadData) {
|
86
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
87
|
-
try {
|
88
|
-
Database(true).set(String(threadID),Object(threadData));
|
89
|
-
}
|
90
|
-
catch (e) {
|
91
|
-
console.log(e);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
95
|
-
try {
|
96
|
-
try {
|
97
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
98
|
-
}
|
99
|
-
catch (e) {
|
100
|
-
var data = {};
|
101
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
102
|
-
}
|
103
|
-
|
104
|
-
data[String(threadID)] = Object(threadData);
|
105
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
106
|
-
}
|
107
|
-
catch (e) {
|
108
|
-
console.log(e);
|
109
|
-
}
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
exports.getData = function(threadID) {
|
114
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
115
|
-
switch (Database(true).has(String(threadID))) {
|
116
|
-
case true: {
|
117
|
-
return Database(true).get(String(threadID))
|
118
|
-
}
|
119
|
-
case false: {
|
120
|
-
return null;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
}
|
124
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
125
|
-
try {
|
126
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
127
|
-
switch (data.hasOwnProperty(String(threadID))) {
|
128
|
-
case true: {
|
129
|
-
return data[String(threadID)];
|
130
|
-
}
|
131
|
-
case false: {
|
132
|
-
return null;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
136
|
-
catch (e) {
|
137
|
-
console.log(e);
|
138
|
-
return null;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
exports.deleteAll = function(data) {
|
144
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
145
|
-
for (let i of data) {
|
146
|
-
Database(true).delete(String(i));
|
147
|
-
}
|
148
|
-
}
|
149
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
150
|
-
try {
|
151
|
-
var data1 = require(process.cwd() + "/alice/database/threads.json");
|
152
|
-
for (let i of data) {
|
153
|
-
delete data1[String(i)];
|
154
|
-
}
|
155
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data1));
|
156
|
-
}
|
157
|
-
catch (e) {
|
158
|
-
console.log(e);
|
159
|
-
}
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
exports.getAll = function() {
|
164
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
165
|
-
return Database(true).list();
|
166
|
-
}
|
167
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
168
|
-
try {
|
169
|
-
const Data_Res = []
|
170
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
171
|
-
for (let i of Object.keys(data)) {
|
172
|
-
Data_Res.push({
|
173
|
-
ID: String(i),
|
174
|
-
data: data[String(i)]
|
175
|
-
});
|
176
|
-
}
|
177
|
-
return Data_Res;
|
178
|
-
}
|
179
|
-
catch (e) {
|
180
|
-
console.log(e);
|
181
|
-
return [];
|
182
|
-
}
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
exports.hasData = function(threadID) {
|
187
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
188
|
-
return Database(true).has(String(threadID));
|
189
|
-
}
|
190
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
191
|
-
try {
|
192
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
193
|
-
return data.hasOwnProperty(String(threadID));
|
194
|
-
}
|
195
|
-
catch (e) {
|
196
|
-
console.log(e);
|
197
|
-
return false;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
exports.alreadyUpdate = function(threadID) {
|
203
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
204
|
-
var Time = Database(true).get(String(threadID)).TimeUpdate;
|
205
|
-
try {
|
206
|
-
if (global.Fca.startTime >= (Time + (3600 * 1000))) {
|
207
|
-
logger.Normal(getText(language.alreadyUpdate, String(threadID)));
|
208
|
-
return true;
|
209
|
-
}
|
210
|
-
else return false;
|
211
|
-
}
|
212
|
-
catch (e) {
|
213
|
-
console.log(e);
|
214
|
-
return true;
|
215
|
-
}
|
216
|
-
}
|
217
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
218
|
-
try {
|
219
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
220
|
-
var Time = data[String(threadID)].TimeUpdate;
|
221
|
-
try {
|
222
|
-
if (global.Fca.startTime >= (Time + (3600 * 1000))) {
|
223
|
-
logger.Normal(getText(language.alreadyUpdate, String(threadID)));
|
224
|
-
return true;
|
225
|
-
}
|
226
|
-
else return false;
|
227
|
-
}
|
228
|
-
catch (e) {
|
229
|
-
console.log(e);
|
230
|
-
return true;
|
231
|
-
}
|
232
|
-
}
|
233
|
-
catch (e) {
|
234
|
-
console.log(e);
|
235
|
-
return true;
|
236
|
-
}
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
exports.readyCreate = function(Name) {
|
241
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
242
|
-
switch (Database(true).has(String(Name))) {
|
243
|
-
case true: {
|
244
|
-
if (Number(global.Fca.startTime) >= Number(Database(true).get(String(Name)) + (120 * 1000))) {
|
245
|
-
return true;
|
246
|
-
}
|
247
|
-
else {
|
248
|
-
return false;
|
249
|
-
}
|
250
|
-
}
|
251
|
-
case false: {
|
252
|
-
return false;
|
253
|
-
}
|
254
|
-
}
|
255
|
-
}
|
256
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
257
|
-
try {
|
258
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
259
|
-
switch (data.hasOwnProperty(String(Name))) {
|
260
|
-
case true: {
|
261
|
-
if (Number(global.Fca.startTime) >= Number(data[String(Name)] + (120 * 1000))) {
|
262
|
-
return true;
|
263
|
-
}
|
264
|
-
else {
|
265
|
-
return false;
|
266
|
-
}
|
267
|
-
}
|
268
|
-
case false: {
|
269
|
-
return false;
|
270
|
-
}
|
271
|
-
}
|
272
|
-
}
|
273
|
-
catch (e) {
|
274
|
-
console.log(e);
|
275
|
-
return false;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
exports.setLastRun = function(Name,LastRun) {
|
281
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
282
|
-
Database(true).set(String(Name),String(lastRun(LastRun)));
|
283
|
-
}
|
284
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
285
|
-
try {
|
286
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
287
|
-
data[String(Name)] = String(lastRun(LastRun));
|
288
|
-
fs.writeFileSync(process.cwd() + "/alice/database/threads.json",JSON.stringify(data));
|
289
|
-
}
|
290
|
-
catch (e) {
|
291
|
-
console.log(e);
|
292
|
-
}
|
293
|
-
}
|
294
|
-
}
|
295
|
-
|
296
|
-
exports.getLastRun = function(Name) {
|
297
|
-
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "default") {
|
298
|
-
switch (Database(true).has(String(Name))) {
|
299
|
-
case true: {
|
300
|
-
return Database(true).get(String(Name));
|
301
|
-
}
|
302
|
-
case false: {
|
303
|
-
try {
|
304
|
-
capture(Name)
|
305
|
-
this.setLastRun(Name,Name);
|
306
|
-
return Database(true).get(String(Name));
|
307
|
-
}
|
308
|
-
catch(e) {
|
309
|
-
console.log(e);
|
310
|
-
return Date.now();
|
311
|
-
}
|
312
|
-
}
|
313
|
-
}
|
314
|
-
}
|
315
|
-
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
316
|
-
try {
|
317
|
-
var data = require(process.cwd() + "/alice/database/threads.json");
|
318
|
-
switch (data.hasOwnProperty(String(Name))) {
|
319
|
-
case true: {
|
320
|
-
return data[String(Name)];
|
321
|
-
}
|
322
|
-
case false: {
|
323
|
-
try {
|
324
|
-
capture(Name)
|
325
|
-
this.setLastRun(Name,Name);
|
326
|
-
return data[String(Name)];
|
327
|
-
}
|
328
|
-
catch(e) {
|
329
|
-
console.log(e);
|
330
|
-
return Date.now();
|
331
|
-
}
|
332
|
-
}
|
333
|
-
}
|
334
|
-
}
|
335
|
-
catch (e) {
|
336
|
-
console.log(e);
|
337
|
-
return Date.now();
|
338
|
-
}
|
339
|
-
}
|
340
|
-
}
|