fca-dragon 1.0.4 → 1.0.6

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.
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-self-assign */
2
- /* eslint-disable linebreak-style */
2
+ /* eslint-disable linebreak-style */
3
3
  const get = require('lodash/get');
4
4
  const set = require('lodash/set');
5
5
  const BetterDB = require("better-sqlite3");
@@ -4,7 +4,7 @@ module.exports = async function(Stable_Version) {
4
4
  const fs = require('fs');
5
5
  const Database = require('../Database');
6
6
  const { execSync } = require('child_process');
7
- const { body } = await got('https://raw.githubusercontent.com/hoangquangtuong/fca-Dragon/main/package.json?token=GHSAT0AAAAAACOSPBZLOG6HZFJHZRTPSFQ4ZTAED5A');
7
+ const { body } = await got('https://raw.githubusercontent.com/hoangquangtuong/fca-Dragon/main/package.json');
8
8
  const json = JSON.parse(body);
9
9
  const LocalVersion = require('../../package.json').version;
10
10
  if (Number(LocalVersion.replace(/\./g,"")) < Number(json.version.replace(/\./g,"")) && global.Fca.Require.FastConfig.Stable_Version.Accept == false || Stable_Version && Number(LocalVersion.replace(/\./g,"")) != Number(Stable_Version.replace(/\./g,""))) {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "LogFile": {
52
52
  "Use": false,
53
- "Explain": "Record memory usage logs to fix errors. Default location: Horizon_Database/memory.logs"
53
+ "Explain": "Record memory usage logs to fix errors. Default location: Dragon_Database/memory.logs"
54
54
  }
55
55
  }
56
56
  }
@@ -86,7 +86,7 @@
86
86
  "WishMessage": [
87
87
  "Chúc Bạn Một Ngày Tốt Lành Nhé !",
88
88
  "Hãy Báo Cáo Với Admin Khi Có Lỗi Fca Nhé !",
89
- "Cảm Ơn Đã Sử Dụng Fca Của Horizon !"
89
+ "Cảm Ơn Đã Sử Dụng Fca Của Dragon !"
90
90
  ]
91
91
  },
92
92
  "ExtraGetThread": {
@@ -194,7 +194,7 @@
194
194
  "WishMessage": [
195
195
  "Have a Nice Day !",
196
196
  "Please Report To Admin When There Is Error in FCA !",
197
- "Thank You For Using Horizon's FCA !"
197
+ "Thank You For Using Dragon's FCA !"
198
198
  ]
199
199
  },
200
200
  "ExtraGetThread": {
package/index.js CHANGED
@@ -74,7 +74,7 @@ global.Fca = new Object({
74
74
  },
75
75
  "LogFile": {
76
76
  "Use": false,
77
- "Explain": "Record memory usage logs to fix errors. Default location: Horizon_Database/memory.logs"
77
+ "Explain": "Record memory usage logs to fix errors. Default location: Dragon_Database/memory.logs"
78
78
  }
79
79
  }
80
80
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fca-dragon",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Facebook-chat-api",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/listenMqtt.js CHANGED
@@ -211,7 +211,7 @@ function listenMqtt(defaultFuncs, api, ctx, globalCallback) {
211
211
  maxThreshold: 0.9,
212
212
  interval: 60 * 1000,
213
213
  logLevel: 'warn',
214
- logFile: path.join(process.cwd(), 'Horizon_Database' ,'memory.log'),
214
+ logFile: path.join(process.cwd(), 'Dragon_Database' ,'memory.log'),
215
215
  smartReleaseEnabled: true,
216
216
  allowLog: (global.Fca.Require.FastConfig.AntiStuckAndMemoryLeak.LogFile.Use || false)
217
217
  };