meta-horizonn 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Main.js CHANGED
@@ -430,6 +430,7 @@ else userID = maybeUser[0].cookieString().split("=")[1].toString();
430
430
  * NRT = Tokyo (Japan)
431
431
  * HKG = Hong Kong
432
432
  * SYD = Sydney
433
+ * EAG = East Ashburn Region (not support)
433
434
  */
434
435
 
435
436
  let Slot = Object.keys(CHECK_MQTT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-horizonn",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/listenMqtt.js CHANGED
@@ -210,9 +210,9 @@ function listenMqtt(defaultFuncs, api, ctx, globalCallback) {
210
210
  warningThreshold: 0.7,
211
211
  releaseThreshold: 0.8,
212
212
  maxThreshold: 0.9,
213
- interval: 60 * 1000,
213
+ interval: 300 * 1000,
214
214
  logLevel: 'warn',
215
- logFile: path.join(process.cwd(), 'Horizon_Database' ,'memory.log'),
215
+ logFile: path.join(process.cwd(), 'Horizon_Database', 'memory.log'),
216
216
  smartReleaseEnabled: true,
217
217
  allowLog: (global.Fca.Require.FastConfig.AntiStuckAndMemoryLeak.LogFile.Use || false)
218
218
  };
@@ -509,8 +509,13 @@ function parseDelta(defaultFuncs, api, ctx, globalCallback, {
509
509
  senderID: delta.deltaMessageReply.message.messageMetadata.actorFbId.toString(),
510
510
  attachments: ( delta.deltaMessageReply.message.attachments || [] )
511
511
  .map((att) => {
512
- const mercury = JSON.parse(att.mercuryJSON);
513
- Object.assign(att, mercury);
512
+ let mercury;
513
+ try {
514
+ const mercury = JSON.parse(att.mercuryJSON);
515
+ Object.assign(att, mercury);
516
+ } catch (ex) {
517
+ mercury = {};
518
+ }
514
519
  return att;
515
520
  })
516
521
  .map((att) => {
package/utils.js CHANGED
@@ -2426,7 +2426,6 @@ function getFrom(str, startToken, endToken) {
2426
2426
  };
2427
2427
 
2428
2428
  function getFroms(str, startToken, endToken) {
2429
- //advanced search by kanzuuuuuuuuuu
2430
2429
  let results = [];
2431
2430
  let currentIndex = 0;
2432
2431