fca-priyansh 10.2.1 → 10.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +30 -30
- package/package.json +1 -1
package/index.js
CHANGED
@@ -192,7 +192,7 @@ log.maxRecordSize = 100;
|
|
192
192
|
var checkVerified = null;
|
193
193
|
var Boolean_Option = ['online','selfListen','listenEvents','updatePresence','forceLogin','autoMarkDelivery','autoMarkRead','listenTyping','autoReconnect','emitReady'];
|
194
194
|
|
195
|
-
/!-[ Set And Check Template HTML ]-!/
|
195
|
+
// /!-[ Set And Check Template HTML ]-!/
|
196
196
|
|
197
197
|
// var css = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'style.css'));
|
198
198
|
// var js = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'script.js'));
|
@@ -251,27 +251,27 @@ var Boolean_Option = ['online','selfListen','listenEvents','updatePresence','for
|
|
251
251
|
// res.write(css);
|
252
252
|
// break;
|
253
253
|
// }
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
})
|
254
|
+
// // case '/History': {
|
255
|
+
// // if (req.query.PassWord == process.env.REPL_OWNER) {
|
256
|
+
// // res.writeHead(200, { 'Content-Type': 'application/json charset=utf-8' });
|
257
|
+
// // res.write(JSON.stringify(console.history,null,2),'utf8');
|
258
|
+
// // res.end();
|
259
|
+
// // }
|
260
|
+
// // else res.json({
|
261
|
+
// // Status: false,
|
262
|
+
// // Error: "Thiếu Params ?PassWord=PassWordCuaBan =))"
|
263
|
+
// // });
|
264
|
+
// // break;
|
265
|
+
// // }
|
266
|
+
// default: {
|
267
|
+
// res.writeHead(200, "OK", { "Content-Type": "text/html" });
|
268
|
+
// res.write(ClassicHTML(global.Fca.Require.Priyansh.HTML.UserName, global.Fca.Data.PremText.includes("Premium") ? "Premium": "Free", global.Fca.Require.Priyansh.HTML.MusicLink));
|
269
|
+
// }
|
270
|
+
// }
|
271
|
+
// res.end();
|
272
|
+
// })
|
273
273
|
|
274
|
-
global.Fca.Require.Web = express;
|
274
|
+
// global.Fca.Require.Web = express;
|
275
275
|
|
276
276
|
/!-[ Function setOptions ]-!/
|
277
277
|
|
@@ -354,7 +354,7 @@ function buildAPI(globalOptions, html, jar) {
|
|
354
354
|
}
|
355
355
|
case false: {
|
356
356
|
throw { error: global.Fca.Require.Language.Index.ErrAppState };
|
357
|
-
|
357
|
+
|
358
358
|
}
|
359
359
|
}
|
360
360
|
}
|
@@ -379,7 +379,7 @@ function buildAPI(globalOptions, html, jar) {
|
|
379
379
|
}
|
380
380
|
|
381
381
|
let Slot = Object.keys(CHECK_MQTT);
|
382
|
-
|
382
|
+
|
383
383
|
var mqttEndpoint,region,irisSeqID;
|
384
384
|
Object.keys(CHECK_MQTT).map(function(MQTT) {
|
385
385
|
if (CHECK_MQTT[MQTT] && !region) {
|
@@ -575,7 +575,7 @@ function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
|
|
575
575
|
$("form input").map((i, v) => arr.push({ val: $(v).val(), name: $(v).attr("name") }));
|
576
576
|
arr = arr.filter(v => { return v.val && v.val.length });
|
577
577
|
var from2 = utils.arrToForm(arr);
|
578
|
-
|
578
|
+
|
579
579
|
if (html.indexOf("checkpoint/?next") > -1) {
|
580
580
|
setTimeout(() => {
|
581
581
|
checkVerified = setInterval((_form) => {}, 5000, {
|
@@ -1179,9 +1179,9 @@ try {
|
|
1179
1179
|
else {
|
1180
1180
|
logger.Normal(getText(Language.LocalVersion,localVersion));
|
1181
1181
|
logger.Normal(getText(Language.CountTime,global.Fca.Data.CountTime()))
|
1182
|
-
logger.Normal(Language.WishMessage[Math.floor(Math.random()*Language.WishMessage.length)]);
|
1182
|
+
// logger.Normal(Language.WishMessage[Math.floor(Math.random()*Language.WishMessage.length)]);
|
1183
1183
|
require('./Extra/ExtraUptimeRobot')();
|
1184
|
-
DataLanguageSetting.HTML.HTML==true? global.Fca.Require.Web.listen(global.Fca.Require.Web.get('DFP')) : global.Fca.Require.Web = null;
|
1184
|
+
// DataLanguageSetting.HTML.HTML==true? global.Fca.Require.Web.listen(global.Fca.Require.Web.get('DFP')) : global.Fca.Require.Web = null;
|
1185
1185
|
callback(null, api);
|
1186
1186
|
};
|
1187
1187
|
}).catch(async function(e) {
|
@@ -1189,9 +1189,9 @@ try {
|
|
1189
1189
|
logger.Warning(Language.AutoCheckUpdateFailure)
|
1190
1190
|
logger.Normal(getText(Language.LocalVersion,global.Fca.Version));
|
1191
1191
|
logger.Normal(getText(Language.CountTime,global.Fca.Data.CountTime()))
|
1192
|
-
logger.Normal(Language.WishMessage[Math.floor(Math.random()*Language.WishMessage.length)]);
|
1192
|
+
// logger.Normal(Language.WishMessage[Math.floor(Math.random()*Language.WishMessage.length)]);
|
1193
1193
|
require('./Extra/ExtraUptimeRobot')();
|
1194
|
-
DataLanguageSetting.HTML.HTML==true? global.Fca.Require.Web.listen(global.Fca.Require.Web.get('DFP')) : global.Fca.Require.Web = null;
|
1194
|
+
// DataLanguageSetting.HTML.HTML==true? global.Fca.Require.Web.listen(global.Fca.Require.Web.get('DFP')) : global.Fca.Require.Web = null;
|
1195
1195
|
callback(null, api);
|
1196
1196
|
});
|
1197
1197
|
}).catch(function(/** @type {{ error: any; }} */e) {
|
@@ -1285,7 +1285,7 @@ function login(loginData, options, callback) {
|
|
1285
1285
|
emitReady: false,
|
1286
1286
|
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8"
|
1287
1287
|
};
|
1288
|
-
|
1288
|
+
|
1289
1289
|
if (loginData.email && loginData.password) {
|
1290
1290
|
setOptions(globalOptions, {
|
1291
1291
|
logLevel: "silent",
|
@@ -1311,7 +1311,7 @@ function login(loginData, options, callback) {
|
|
1311
1311
|
};
|
1312
1312
|
callback = prCallback;
|
1313
1313
|
}
|
1314
|
-
|
1314
|
+
|
1315
1315
|
(async function() {
|
1316
1316
|
var Premium = require("./Extra/Src/Premium");
|
1317
1317
|
global.Fca.Data.PremText = await Premium(global.Fca.Require.Security.create().uuid) || "Bạn Đang Sài Phiên Bản: Free !";
|